This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
[daily build 200503061900,JDK1.5.0_02] Web module deployment fails after some Redeploy actions.Known Tomcat 5.5.7 bug.
Created attachment 20717 [details] Tomcat and web app output
The problem is described http://issues.apache.org/bugzilla/show_bug.cgi?id=26135 . So we will have to wait for a new version of Tomcat or downgrade the bundled tomcat to 5.5.4 version.
Please note that this issue was reported on Tomcat 5.5.4 as well.
Radim offered to look at this - thanks Radim.
I am testing Tomcat 5.5.8 now with some app from Petr Pisl that employs various technologies - JSF, Hibernate + some other libs. Although it cannot connect to DB in my env it leaks if I deploy it, show the welcome page, undeploy. My current suspicion is that it can leak through naming context - org.apache.catalina.loader.WebappClassLoader@31b5 instance org.apache.catalina.loader.WebappClassLoader@31b6 held by org.apache.jasper.compiler.JspRuntimeContext@1212b held by org.apache.commons.modeler.BaseModelMBean@19499 held by org.apache.naming.ContextBindings.clNameBindings held by org.apache.commons.logging.LogFactory.factories held by org.apache.naming.resources.DirContextURLStreamHandler.clBindings held by org.apache.catalina.loader.WebappLoader@46fc held by org.apache.naming.ContextBindings.clBindings I am not sure who is responsible for bind/unbind here. Maybe it is problem of Hibernate.
I cannot reproduce this with simple web app that loads several classes and runs System.gc() during page execution. Redeployed >25 times and it seems that classes are unloaded correctly
I enhanced the example with (failing) lookup for JNDI context and still it is OK. Sounds to me like a problem with components in Petr's application. I would like to close this as WONTFIX - we surely know that it is not NetBeans problem. We cannot tell for sure if it is problem in Tomcat.
I agree.
I agree too.
Marking as WONTFIX.