Project: Tomcat
Bug 41059 WebAppClassLoader clearReferences code break running threads
Reported: 2006-11-28 11:53:02 | Status: resolved fixed

When the WebAppClassLoader stops it manually sets all static and final variables to null in the clearReferences method. This results in NPEs for any thread that was not stopped and not expecting its final or static variables to be null. This is particularly a problem with hot deploys since the unload fails and terminating the deploy.

Files changed in fix:
java/org/apache/catalina/loader/WebappClassLoader.java