tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 53381] NPE at org.apache.catalina.loader.WebappClassLoader.findResourceInternal(
Date Thu, 07 Jun 2012 17:08:12 GMT

--- Comment #1 from Konstantin Kolinko <> ---
The stacktrace mentions


1. So it happens during cleanup of static fields on web application shutdown.
It is one of those features to remedy memory leaks in stopped applications.

This particular cleanup can be turned off in Tomcat 6 by setting the following
system property to the value of false (e.g. in conf/ file):



Maybe this feature does not play well with

Do you use some form of lazy initialization/loading of classes?

2. Looking at WebappClassLoader.stop() line 1833, closing the JARs happens
later than this call to clearReferences(). So it is unclear why JARs appear to
be closed.

To exclude bug 53225, a question: do you have "JreMemoryLeakPreventionListener"
in your server.xml?  It should not be an issue in 6.0.x - just confirming.

You are receiving this mail because:
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message