Unable to start JBoss Web Server JWS (Apache Tomcat) as systemd service

Solution Verified - Updated -

Issue

  • Unable to start JBoss Web Server JWS (Apache Tomcat) as systemd service.
  • JBoss Web Server JWS (Apache Tomcat) as systemd service throws permission error while starting Apache Tomcat.
Jan 24 12:47:35 user systemd[1]: Starting Apache Tomcat Web Application Container...
Jan 24 12:47:35 user startup.sh[1067098]: touch: cannot touch '/JBoss/jws-5.7/tomcat/logs/catalina.out': Permission denied
Jan 24 12:47:35 user startup.sh[1067086]: /JBoss/jws-5.7/tomcat/bin/catalina.sh: line 504: /JBoss/jws-5.7/tomcat/logs/catalina.out: Permission denied
Jan 24 12:47:35 user systemd[1]: jws5-tomcat.service: Control process exited, code=exited status=1
Jan 24 12:47:35 user systemd[1]: jws5-tomcat.service: Failed with result 'exit-code'.
Jan 24 12:47:35 user systemd[1]: Failed to start Apache Tomcat Web Application Container.

Environment

  • Red Hat Enterprise Linux (RHEL) 7,8,9
  • Red Hat JBoss Web Server (JWS) 5.
  • Tomcat 9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content