my dog learned polymorphism*
The moose likes Servlets and the fly likes Changing servlet requires Tomcat restart Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Changing servlet requires Tomcat restart" Watch "Changing servlet requires Tomcat restart" New topic

Changing servlet requires Tomcat restart

Nair Anoop
Ranch Hand

Joined: May 09, 2001
Posts: 68
I am using Tomcat on a Win NT machine. Actually I am developing a SOAP client which accepts user input from the user and then the request is processed in a servlet.
The problem I am facing that is whenever I make a change to the servlet and recompile it, the changes do not take effect till I stop and restart Tomcat. This is very frustrating
Is there another way ?
Thanks in advance,
Jeff Sunder
Ranch Hand

Joined: Jun 26, 2001
Posts: 47
You need to go the your server.xml file found under the tomcat/conf and change the reloadable attribute of the context tag to true for your particular application. If reloadable is not in the context element add the following as an attribute reloadable="true" .
Nair Anoop
Ranch Hand

Joined: May 09, 2001
Posts: 68
I have a context defined as :
<Context path="/simple"
reloadable="true" >
However, if I recompile the servlet, the change in not reflected in the browser output unless I restart Tomcat. I am using Tomcat 3.2.1 on Win NT.
Why is this happening ?

[This message has been edited by Nair Anoop (edited August 02, 2001).]
I agree. Here's the link:
subject: Changing servlet requires Tomcat restart
Similar Threads
deploying jsps and servlets to tomcat
tomcat finding files
Servlets exception thrown
Tomcat 404 Error on Every New Servlet I Create
Do I need to restart TOMCAT???????