users@glassfish.java.net

Re: Custom Web-app Loader - How To?

From: <glassfish_at_javadesktop.org>
Date: Wed, 24 Oct 2007 17:37:58 PDT

> First off I'd rather not modify the classloading of
> all deployed applications -- I am trying to avoid
> that.
>
> Secondly what would modifying classpath-prefix do?
> Would it put each web app's docroot at the front of
> *its* loader? If so, that's of interest in the
> interim. On the other hand, if this puts my web
> app's docroot in a higher classloader then this is a
> non-starter as the classes loaded from my docroot
> depend on classes in WEB-INF/lib/*.jar and thus
> these must all be in the same classloader -- and I
> don't want to have to change the config every time
> something else gets added to WEB-INF/lib.

OK, then this hack is not for you.
classpath-prefix modifies the effective classloading of the entire server.
[Message sent by forum member 'km' (km)]

http://forums.java.net/jive/thread.jspa?messageID=242003