You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Romain Manni-Bucau (Closed) (JIRA)" <ji...@apache.org> on 2011/10/09 23:01:29 UTC

[jira] [Closed] (TOMEE-11) conf/logging.properties conflicts with juli configuration for Tomcat

     [ https://issues.apache.org/jira/browse/TOMEE-11?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Romain Manni-Bucau closed TOMEE-11.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.0-beta-2

i was not able to reproduce, in tomee 1.0.0-beta-2-SNAPSHOT logging seems to work correctly.

feel free to re-open the issue and detail a bit more what you expect if it is still a problem for you
                
> conf/logging.properties conflicts with juli configuration for Tomcat
> --------------------------------------------------------------------
>
>                 Key: TOMEE-11
>                 URL: https://issues.apache.org/jira/browse/TOMEE-11
>             Project: TomEE
>          Issue Type: Bug
>         Environment: All
>            Reporter: Rainer Jung
>            Priority: Minor
>             Fix For: 1.0.0-beta-2
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira