Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
All
Description
The file conf/logging.properties in CATALINA_BASE has a special meaning during Tomcat startup:
its precence leads to Tomcat using JULI-Logging with conf/logging.properties as the configuration.
Case 1: User removed Tomcat standard conf/logging.properties after Tomcat installation as part of the procedure usually used to let Tomcat log via log4j.
If there is no conf/logging.properties the openejb installer for Tomcat produces such a file.
During the next restart Tomcat detects that file and by the logic in catalina.sh it will then switch automatically to JULI-Loggin for its own purposes. It will try to configure JULI via conf/logging.properties, but the syntax of that file if for log4j, not juli. So Tomcat logging will be broken.
Case 2: conf/logging.properties coming from the Tomcat installation exists.
(not tested) openejb will add its own log configuration lines (because in the standard Tomcat file there are no openejb entries) and will thus produce a file with some statements for JULI, and some for log4j, making it unusable for both logging frameworks.
Choosing the name conf/logging.properties was unfortunate, because that file already had a special incompatible meaning for Tomcat. It seems you should either choose a different file name or a different directory.