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 6762] New: - WebappClassLoader: Lifecycle error : CL stopped
Date Thu, 28 Feb 2002 18:45:26 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6762>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6762

WebappClassLoader: Lifecycle error : CL stopped

           Summary: WebappClassLoader: Lifecycle error : CL stopped
           Product: Tomcat 4
           Version: 4.0.2 Final
          Platform: PC
               URL: http://http://
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: gpuchta@sonicblue.com


I'm running JDK 1.3. At Tomcat startup time my web app executes a servlet which 
adds a cleanup thread via Runtime.getRuntime().addShutdownHook( ...)

When I normally shutdown Tomcat the following exception is thrown:

Stopping service Tomcat-Standalone
Stopping service Tomcat-Apache
WebappClassLoader: Lifecycle error : CL stopped
java.lang.NoClassDefFoundError: java/util/Enumeration
        at com.replaytv.shared.logger.LogManager.initCleanUp 
(LogManager.java:196)
        at com.replaytv.shared.logger.LogCleanUpThread.run
(LogCleanUpThread.java:22)

In this example the class java.util.Enumeration hasn't been used before and is 
therefore not loaded yet. During shutdown, the cleanup thread tries to load the 
class but the Tomcats custom classloader has been removed already.

I work around it by loading the handful of classes I need in the cleanup thread 
during startup via Class.forName( ...).

When the custom classloader is removed shouldn't at least the default class 
loader be set?

-Georg

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


Mime
View raw message