You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "asaf.lahav" <as...@gmail.com> on 2006/11/23 15:21:00 UTC
Refreshing tomcat webapp class loader
Is it possible to refresh a webapp class loader?
I have a process in which jars may be replaced or added to a webapp class
path.
How can I cause the tomcat to be aware of those changes?
Thanks in advance,
Asaf
RE: Refreshing tomcat webapp class loader
Posted by "asaf.lahav" <as...@gmail.com>.
Can you please give me some more pointers about this (Documentation,
samples, etc...)?
-----Original Message-----
From: Leon Rosenberg [mailto:rosenberg.leon@googlemail.com]
Sent: Friday, November 24, 2006 11:10 AM
To: Tomcat Users List
Subject: Re: Refreshing tomcat webapp class loader
you can write your own, its pretty simple, and do whatever you want.
in your context.xml
<Context docBase="${catalina.home}/webapps/ROOT"
debug="0" >
<Loader className="org.apache.catalina.loader.WebappLoader"
delegate="false"
reloadable="true"
loaderClass="YourClassLoader"
/>
</Context>
regards
Leon
On 11/24/06, asaf.lahav <as...@gmail.com> wrote:
> Isn't it possible to simply make the class loader reload all the jars in
its
> classpath?
>
> It is possible to replace the main webapp class loader at runtime?
>
>
> -----Original Message-----
> From: Vasilis Katsoulis [mailto:vasilis.apache@protepo.com]
> Sent: Thursday, November 23, 2006 5:24 PM
> To: Tomcat Users List
> Subject: Re: Refreshing tomcat webapp class loader
>
> If you are replacing jars, you should trigger a reload of the whole
web-app.
> You can easily do this by redeploying its war file containing the new
> jars, or do a unix "touch" of its context file, or reload it from the
> manager.
>
> vasilis
>
>
> asaf.lahav wrote:
> > Is it possible to refresh a webapp class loader?
> >
> > I have a process in which jars may be replaced or added to a webapp
class
> > path.
> >
> > How can I cause the tomcat to be aware of those changes?
> >
> >
> >
> > Thanks in advance,
> >
> > Asaf
> >
> >
> >
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Refreshing tomcat webapp class loader
Posted by Leon Rosenberg <ro...@googlemail.com>.
you can write your own, its pretty simple, and do whatever you want.
in your context.xml
<Context docBase="${catalina.home}/webapps/ROOT"
debug="0" >
<Loader className="org.apache.catalina.loader.WebappLoader"
delegate="false"
reloadable="true"
loaderClass="YourClassLoader"
/>
</Context>
regards
Leon
On 11/24/06, asaf.lahav <as...@gmail.com> wrote:
> Isn't it possible to simply make the class loader reload all the jars in its
> classpath?
>
> It is possible to replace the main webapp class loader at runtime?
>
>
> -----Original Message-----
> From: Vasilis Katsoulis [mailto:vasilis.apache@protepo.com]
> Sent: Thursday, November 23, 2006 5:24 PM
> To: Tomcat Users List
> Subject: Re: Refreshing tomcat webapp class loader
>
> If you are replacing jars, you should trigger a reload of the whole web-app.
> You can easily do this by redeploying its war file containing the new
> jars, or do a unix "touch" of its context file, or reload it from the
> manager.
>
> vasilis
>
>
> asaf.lahav wrote:
> > Is it possible to refresh a webapp class loader?
> >
> > I have a process in which jars may be replaced or added to a webapp class
> > path.
> >
> > How can I cause the tomcat to be aware of those changes?
> >
> >
> >
> > Thanks in advance,
> >
> > Asaf
> >
> >
> >
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Refreshing tomcat webapp class loader
Posted by "asaf.lahav" <as...@gmail.com>.
Isn't it possible to simply make the class loader reload all the jars in its
classpath?
It is possible to replace the main webapp class loader at runtime?
-----Original Message-----
From: Vasilis Katsoulis [mailto:vasilis.apache@protepo.com]
Sent: Thursday, November 23, 2006 5:24 PM
To: Tomcat Users List
Subject: Re: Refreshing tomcat webapp class loader
If you are replacing jars, you should trigger a reload of the whole web-app.
You can easily do this by redeploying its war file containing the new
jars, or do a unix "touch" of its context file, or reload it from the
manager.
vasilis
asaf.lahav wrote:
> Is it possible to refresh a webapp class loader?
>
> I have a process in which jars may be replaced or added to a webapp class
> path.
>
> How can I cause the tomcat to be aware of those changes?
>
>
>
> Thanks in advance,
>
> Asaf
>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Refreshing tomcat webapp class loader
Posted by Vasilis Katsoulis <va...@protepo.com>.
If you are replacing jars, you should trigger a reload of the whole web-app.
You can easily do this by redeploying its war file containing the new
jars, or do a unix "touch" of its context file, or reload it from the
manager.
vasilis
asaf.lahav wrote:
> Is it possible to refresh a webapp class loader?
>
> I have a process in which jars may be replaced or added to a webapp class
> path.
>
> How can I cause the tomcat to be aware of those changes?
>
>
>
> Thanks in advance,
>
> Asaf
>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org