tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <>
Subject Re: Reloading classes in shared dir
Date Wed, 11 Dec 2002 01:33:41 GMT

On Mon, 9 Dec 2002, Luiz Ricardo wrote:

> Date: Mon, 9 Dec 2002 14:14:40 -0200
> From: Luiz Ricardo <>
> Reply-To: Tomcat Users List <>
> To: Tomcat-Users List <>
> Subject: Reloading classes in shared dir
> Hi everybody,
> I would like to know if there is any way to configure TomCat to reload the
> classes installed in CATALINA_HOME/shared.

No, it's not -- and it basically cannot be.  :-(

Java does not provide any mechanisms for replacing classes in an existing
class loader.  The only thing you can do is throw away the entire class
loader itself, and create a new one (which is how Tomcat handles
application reloads).

Because the shared (and common) class loaders are parents to the webapp
class loaders, that would mean throwing away all of the current webapps
and starting over.  Essentially, you'd be doing exactly what stopping and
starting Tomcat already does.

> Luiz Ricardo


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

View raw message