tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 39631] New: - JCL 1.1 - Log4JLogger.traceLevel becomes null
Date Mon, 22 May 2006 14:14:05 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39631>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39631

           Summary: JCL 1.1 - Log4JLogger.traceLevel becomes null
           Product: Tomcat 5
           Version: 5.5.17
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: g.grzybek@op.pl


I think it's a classloading problem. The scenario is:
 - running tomcat 5.5.17 with TOMCAT_HOME/bin/commons-logging-api.jar updated to 1.1
 - there's no commons-logging.jar both in common and shared classloader
 - there's only one simple webapp (servlet which uses Log) with
commons-logging-adapters-1.1.jar and log4j-1.2.13.jar in its /WEB-INF/lib
 - tomcat starts
 - everything's fine
 - my simple app stops (using manager console)
 - my simple app starts again
 - there is NPE in:
SEVERE: Error reading tld listeners java.lang.NullPointerException
java.lang.NullPointerException
	at org.apache.log4j.Category.isEnabledFor(Category.java:746)
	at org.apache.commons.logging.impl.Log4JLogger.isTraceEnabled(Log4JLogger.java:327)
	at org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java:581)

when this happens (Log4JLogger.java:327), "Log4JLogger.class.getClassLoader()"
evaluates to WebappClassLoader which has already stopped.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message