You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Pr...@itsindia.com on 2001/04/16 11:42:47 UTC

** Does Tomcat need Restart **

Hi,

Is there any option in tomcat CONFIGURATION by which, I can instruct Tomcat
to restart automatically whenever a servlet gets modified (i.e. I
re-compile the servlet).

I am running Tomcat and Apache on Linux OS.

Regards,
Marathe


Re: ** Does Tomcat need Restart **

Posted by Meir Faraj <fa...@netvision.net.il>.
and for jsp how to do this ?
I've problem in reloading jsp (after few reloading)
even if I delete the created class from the work/ROOT/ dirrectory.
what I need to do ?
----- Original Message -----
From: "Scott Judd" <sc...@amered.com>
To: <to...@jakarta.apache.org>; <be...@smile.fr>
Sent: Tuesday, April 17, 2001 4:26 PM
Subject: Re: ** Does Tomcat need Restart **


> I'd like to offer two cents on this topic. I have seen both very
successful
> and very unsuccessful results when using servlet reloading on Tomcat.
First,
> make sure that the servlet classes reside in
/webapps/ROOT/WEB-INF/classes.
> Next, make sure that the web.xml file in the  webapps/ROOT/WEB-INF folder
> contains the appropriate entry to register the servlet. Finally, make sure
> that the reloadable attribute for the given context is set to "true" in
> /conf/server.xml.
>
> Tomcat has demonstrated consistent success in reloading servlets that I
> invoke directly from the CLI of my browser, following the above
> prescription. If I try to vary this formula (place servlets in other
> directories, package servlet classes together, invoke a servlet from
another
> servlet) servlet reloading seems to get hosed and I end up restarting
Tomcat
> in order to "see" the new class files.
>
> scott
>
> G:\tomcat\webapps\ROOT\WEB-INF
>
> From: "Benoit Jacquemont" <be...@smile.fr>
> > This feature exists, it is defined by the reloadable parameter for the
> > Context. But it is an alpha version feature, so you always need to
restart
> > Tomcat.
> >
> > Benoit
> >
>
> > > Hi,
> > >
> > > Is there any option in tomcat CONFIGURATION by which, I can
> > > instruct Tomcat
> > > to restart automatically whenever a servlet gets modified (i.e. I
> > > re-compile the servlet).
> > >
> > > I am running Tomcat and Apache on Linux OS.
> > >
> > > Regards,
> > > Marathe
> >
>
>


Re: ** Does Tomcat need Restart **

Posted by Milt Epstein <me...@uiuc.edu>.
On Tue, 17 Apr 2001, Scott Judd wrote:

> I'd like to offer two cents on this topic. I have seen both very
> successful and very unsuccessful results when using servlet
> reloading on Tomcat. First, make sure that the servlet classes
> reside in /webapps/ROOT/WEB-INF/classes.  Next, make sure that the
> web.xml file in the webapps/ROOT/WEB-INF folder contains the
> appropriate entry to register the servlet. Finally, make sure that
> the reloadable attribute for the given context is set to "true" in
> /conf/server.xml.

I'd add one other thing: Make sure the servlet classes are *not* on
the classpath (because then they'll be loaded by the regular
classloader, not tomcat's special classloader that can do reloading).


> Tomcat has demonstrated consistent success in reloading servlets
> that I invoke directly from the CLI of my browser, following the
> above prescription. If I try to vary this formula (place servlets in
> other directories, package servlet classes together, invoke a
> servlet from another servlet) servlet reloading seems to get hosed
> and I end up restarting Tomcat in order to "see" the new class
> files.
>
> scott
>
> G:\tomcat\webapps\ROOT\WEB-INF
>
> From: "Benoit Jacquemont" <be...@smile.fr>
> > This feature exists, it is defined by the reloadable parameter for the
> > Context. But it is an alpha version feature, so you always need to restart
> > Tomcat.
> >
> > Benoit
> >
>
> > > Hi,
> > >
> > > Is there any option in tomcat CONFIGURATION by which, I can
> > > instruct Tomcat
> > > to restart automatically whenever a servlet gets modified (i.e. I
> > > re-compile the servlet).
> > >
> > > I am running Tomcat and Apache on Linux OS.
> > >
> > > Regards,
> > > Marathe
> >
>

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
mepstein@uiuc.edu


Re: ** Does Tomcat need Restart **

Posted by Scott Judd <sc...@amered.com>.
I'd like to offer two cents on this topic. I have seen both very successful
and very unsuccessful results when using servlet reloading on Tomcat. First,
make sure that the servlet classes reside in /webapps/ROOT/WEB-INF/classes.
Next, make sure that the web.xml file in the  webapps/ROOT/WEB-INF folder
contains the appropriate entry to register the servlet. Finally, make sure
that the reloadable attribute for the given context is set to "true" in
/conf/server.xml.

Tomcat has demonstrated consistent success in reloading servlets that I
invoke directly from the CLI of my browser, following the above
prescription. If I try to vary this formula (place servlets in other
directories, package servlet classes together, invoke a servlet from another
servlet) servlet reloading seems to get hosed and I end up restarting Tomcat
in order to "see" the new class files.

scott

G:\tomcat\webapps\ROOT\WEB-INF

From: "Benoit Jacquemont" <be...@smile.fr>
> This feature exists, it is defined by the reloadable parameter for the
> Context. But it is an alpha version feature, so you always need to restart
> Tomcat.
>
> Benoit
>

> > Hi,
> >
> > Is there any option in tomcat CONFIGURATION by which, I can
> > instruct Tomcat
> > to restart automatically whenever a servlet gets modified (i.e. I
> > re-compile the servlet).
> >
> > I am running Tomcat and Apache on Linux OS.
> >
> > Regards,
> > Marathe
>


RE: ** Does Tomcat need Restart **

Posted by Benoit Jacquemont <be...@smile.fr>.
This feature exists, it is defined by the reloadable parameter for the
Context. But it is an alpha version feature, so you always need to restart
Tomcat.

Benoit

> Hi,
>
> Is there any option in tomcat CONFIGURATION by which, I can
> instruct Tomcat
> to restart automatically whenever a servlet gets modified (i.e. I
> re-compile the servlet).
>
> I am running Tomcat and Apache on Linux OS.
>
> Regards,
> Marathe