tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: how to use VirtualWebappLoader - either in META-INF/context.xml or programmatically on startup
Date Fri, 01 Jul 2011 02:04:09 GMT
Hash: SHA1


On 6/30/2011 9:55 PM, Bob DeRemer wrote:
> I've verified that the WEB-INF/extensions will work, too.  The key
> issue for us is being able to hot-deploy extension JAR(s) live
> without restarting the webapp or Tomcat.  I began by seeing if Tomcat
> supported find JAR(s) on non-standard locations so we can separate
> the extensions.  These extensions to our core product will typically
> be developed by 3rd parties.
> So, I now need to look at creating my own classloader [it seems]
> because even the VWL doesn't monitor for JAR additions and
> automatically load them.  Again - if anyone knows how to do this, I
> would really appreciate any direction to shorten my dev time.

Tomcat has a ClassLoader used for re-loading JSPs. A quick look at that
shows there is no real magic there: it does not re-load itself in any
way. Instead, some other component somewhere must be monitoring the JSP
files for updates and orchestrating the disposal of the old ClassLoader
(and the classes and instances loaded by it) and the creation of a new one.

I believe AXIS also has such a scheme for re-loading web services
without bouncing the entire webapp.

All source code is available online, so you are free to read it all ;)

- -chris
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message