Tomcat may fail to write to log file in Red Hat Enterprise Linux 5

Solution Verified - Updated -

Issue

  • log file (catalina.out) is not being created properly by init script (permission issue). Newly created catalina.out log files should be writable by tomcat process.
  • Tomcat fails to write to log file after /var/log/tomcat5/catalina.out is removed. The log file /var/log/tomcat5/catalina.out is automatically re-crated when tomcat5 service is restarted,  but the ownership of /var/log/tomcat5/catalina.out is changed to root.root, making it unwritable by the tomcat process.

Environment

  • Red Hat Enterprise Linux 5.4
  • tomcat5-5.5.23-0jpp.7.el5_3.2
    

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.