geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jencks (JIRA)" <>
Subject [jira] Resolved: (GERONIMO-2693) Application classloader contains a massive number of duplicate classpath entries
Date Thu, 15 Mar 2007 01:25:09 GMT


David Jencks resolved GERONIMO-2693.

       Resolution: Fixed
    Fix Version/s: 2.0-beta1

I think this is fixed in trunk in rev 518426.  I'd rather there was a test, especially for
the non-normailized urls Mike was seeing.  This issue was making jetty start at less than
a snails pace due to its search for tlds, and fixing it considerably speeds up jetty's startup.

> Application classloader contains a massive number of duplicate classpath entries
> --------------------------------------------------------------------------------
>                 Key: GERONIMO-2693
>                 URL:
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: kernel
>    Affects Versions: 1.1.1
>         Environment: WAS CE
>            Reporter: Mike Perham
>         Assigned To: David Jencks
>             Fix For: 2.0-beta1
>         Attachments: cpath.txt, GERONIMO-2693.patch
> I have an EAR with an MDB jar and two WARs.  The EAR contains a large number of jars
within a lib directory.  The wars and ejb-jar all contain MANIFEST.MF Class-Path entries which
reference those jars within lib/.
> When I print out my WAR classpath, I get output attached.  The duplications don't really
matter all that much except for the duplications due to non-canonicalized paths:
> jar:file:/D:/perforce/depot/external/wasce/!/META-INF
> jar:file:/D:/perforce/depot/external/wasce/!/META-INF
> If I do a getResources("foo") and that gov-api jar has a foo resource, the system will
think there are two foo resources when in fact there is only one, due to different URLs for
the same resource.  As a result, for instance, this causes Apache Hivemind to blow up with
an error due to it thinking a component jar is doubly defined in the classpath.
> I'm unclear why Geronimo is adding all the lib jars to my classpath without my asking.
 It seems like the various J2EE modules should be able to control their own classpath wrt
jars in the ear.
> This is a blocker preventing us from using our application on WAS CE.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message