You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "loua (JIRA)" <ji...@apache.org> on 2016/07/11 19:10:11 UTC

[jira] [Created] (TOMEE-1863) Log4J initialized twice for web app

loua created TOMEE-1863:
---------------------------

             Summary: Log4J initialized twice for web app
                 Key: TOMEE-1863
                 URL: https://issues.apache.org/jira/browse/TOMEE-1863
             Project: TomEE
          Issue Type: Bug
    Affects Versions: 1.7.3
         Environment: Windows Server 2012, Windows 7
            Reporter: loua


The web application uses slf4j for logging.  The logging implementation is log4j.  The application contains a log4j.properties file in the WEB-INF\classes directory.  The application uses JAX-RS and Stateless EJBs.  Log4j is initialized by the TempClassLoader and then again when the webapp is loaded.  This results in two OS file handles referencing the same log file (RollingLogFileAppender) that prevents the log file from rolling over.  TomEE logging uses the default java.util.logging.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)