[jboss-jira] [JBoss JIRA] Closed: (JBAS-5376) Deploying war inside an ear leaks ear's classloader

Adrian Brock (JIRA) jira-events at lists.jboss.org
Mon Apr 7 11:27:23 EDT 2008


     [ http://jira.jboss.com/jira/browse/JBAS-5376?page=all ]

Adrian Brock closed JBAS-5376.
------------------------------

    Resolution: Duplicate Issue
      Assignee:     (was: Scott M Stark)

This is a duplicate of JBAS-5368

> Deploying war inside an ear leaks ear's classloader
> ---------------------------------------------------
>
>                 Key: JBAS-5376
>                 URL: http://jira.jboss.com/jira/browse/JBAS-5376
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Web (Tomcat) service, Deployment services, ClassLoading
>    Affects Versions: JBossAS-5.0.0.Beta4
>            Reporter: Brian Stansberry
>
> If a war is packaged inside an ear, the war's classloader is leaked on undeploy.
> From a JBoss Profiler heap analysis of a ClassloaderLeakUnitTestCase failure:
> !--BaseClassLoader at 7ba4f9{vfsfile:/C:/dev/jboss/jboss-head/testsuite/output/lib/classloader-leak-simple.ear}
> !--!--FieldReference private java.lang.ClassLoader org.jboss.classloader.plugins.loader.ClassLoaderToLoaderAdapter.classLoader=BaseClassLoader at 7ba4f9{vfsfile:/C:/dev/jboss/jboss-head/testsuite/output/lib/classloader-leak-simple.ear}
> !--!--!--FieldReference private org.jboss.classloader.spi.Loader org.jboss.classloader.spi.ClassLoaderDomain.parent=ClassLoaderDomain at 10ed39f{vfsfile:/C:/dev/jboss/jboss-head/testsuite/output/lib/classloader-leak-simple.ear/classloader-leak-simple-ejb.war}
> !--!--!--!--FieldReference java.lang.Object java.util.HashMap$Entry.value=vfsfile:/C:/dev/jboss/jboss-head/testsuite/output/lib/classloader-leak-simple.ear/classloader-leak-simple-ejb.war=ClassLoaderDomain at 10ed39f{vfsfile:/C:/dev/jboss/jboss-head/testsuite/output/lib/classloader-leak-simple.ear/classloader-leak-simple-ejb.war}
> !--!--!--!--!--arrayRef [Ljava.util.HashMap$Entry;[6] id=@18063131
> !--!--!--!--!--!--FieldReference transient java.util.HashMap$Entry[] java.util.HashMap.table={..............}, =ClassLoaderDomain at 6c5482{}}
> !--!--!--!--!--!--!--FieldReference private java.util.Map org.jboss.classloader.spi.ClassLoaderSystem.registeredDomains=DefaultClassLoaderSystem at 8b1a4
> I'll create a forum thread and discuss the details of how this occurs there.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list