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.

Bug 56062 - Redeploy on bundled Tomcat fails in Web app because of PermGen exception
Summary: Redeploy on bundled Tomcat fails in Web app because of PermGen exception
Status: CLOSED WONTFIX
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: _ rkubacki
URL:
Keywords: TOMCAT
Depends on:
Blocks:
 
Reported: 2005-03-07 14:50 UTC by Jaroslav Pospisil
Modified: 2005-07-12 15:50 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Tomcat and web app output (140.19 KB, text/plain)
2005-03-07 14:52 UTC, Jaroslav Pospisil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Pospisil 2005-03-07 14:50:41 UTC
[daily build 200503061900,JDK1.5.0_02]

Web module deployment fails after some Redeploy
actions.Known Tomcat 5.5.7 bug.
Comment 1 Jaroslav Pospisil 2005-03-07 14:52:26 UTC
Created attachment 20717 [details]
Tomcat and web app output
Comment 2 Petr Pisl 2005-03-07 15:02:40 UTC
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.
Comment 3 Sherold Dev 2005-03-07 16:02:20 UTC
Please note that this issue was reported on Tomcat 5.5.4 as well.
Comment 4 Petr Jiricka 2005-03-10 17:30:21 UTC
Radim offered to look at this - thanks Radim.
Comment 5 _ rkubacki 2005-03-15 13:50:08 UTC
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.
Comment 6 _ rkubacki 2005-03-15 17:10:24 UTC
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
Comment 7 _ rkubacki 2005-03-15 17:42:17 UTC
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. 
Comment 8 Petr Pisl 2005-03-16 09:38:54 UTC
I agree.
Comment 9 Jaroslav Pospisil 2005-03-16 09:54:31 UTC
I agree too.
Comment 10 Petr Jiricka 2005-03-16 09:56:27 UTC
Marking as WONTFIX.