Mike Calmus created LOG4J2-795:
----------------------------------

             Summary: Problems when libraries are loaded as part of server 
startup classpath
                 Key: LOG4J2-795
                 URL: https://issues.apache.org/jira/browse/LOG4J2-795
             Project: Log4j 2
          Issue Type: Bug
    Affects Versions: 2.0.1, 2.0
         Environment: Weblogic 10.3.6, Java 7
            Reporter: Mike Calmus
            Priority: Critical


"works" means that there is logging. For some items there may be caveats.

All tests were run using Weblogic 10.3.6 (a Servlet 2.5 container) running on 
Java 7. There were no difference when using Log4j 2.0 versus 2.0.1.

When log4j libraries are loaded as a part of the server's startup classes (out 
current preferred configuration with Log4j 1.2.x):

1) Standard web-app configuration with configuration file specified in web.xml 
does not work
2) Configured with JndiContextSelector as the Log4jContextSelector system 
property it doesn't work when I have things configured correctly. If I exclude 
the JNDI lookup environment properties I get an error in the System log, but 
logging works.

Removing the Log4j libraries from System startup and instead bundle them with 
the application (no other changes)

Scenario 1 above now works.
The JNDI configuration does not work. 

Here's a link to the discussion that may have additional information.

http://mail-archives.apache.org/mod_mbox/logging-log4j-user/201408.mbox/%3cCACmp6kqNR2c6m3unCKuCH=zurrs63i6kn8efwxhbduk1ytk...@mail.gmail.com%3e



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to