Details
Description
I've severe pain when using plexus/maven in a web app as the plugin creates a class loader where the WebAppClassLoader's parent class loader includes maven/plexus etc. Any chance of an option to disable this behaviour?
I've severe pain when using plexus/maven in a web app as the plugin creates a class loader where the WebAppClassLoader's parent class loader includes maven/plexus etc. Any chance of an option to disable this behaviour?
Hi James,
We mark the org.apache.maven.* and org.codehaus.plexus.* packages for the webapp's classloader in such a way as to allow the webapp to provide their own copies of them to fix a previous bug report with interference from the parent classloader, here's the reference to it: http://jira.codehaus.org/browse/JETTY-463 .
I think that patch should have been applied for jetty-6.1.16, but it might be worth while trying the latest and greatest 6.1.20 anyway.
If you get no joy, then I guess there must be some classes that are being loaded by the parent loader that the child loader is trying to access. Can you attach an example stack trace for me and/or a little webapp that has some plexus or maven dependencies that show up the problem?
BTW I don't suppose you happen to have set parentLoaderPriority=true for the webapp?
ta muchly,
Jan