File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "Changing servlet requires Tomcat restart" Watch "Changing servlet requires Tomcat restart" New topic
Author

Changing servlet requires Tomcat restart

Nair Anoop
Ranch Hand

Joined: May 09, 2001
Posts: 68
Hi,
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,
Anoop
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
Hi,
I have a context defined as :
<Context path="/simple"
docBase="webapps/simple"
debug="0"
reloadable="true" >
</Context>
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 ?
Thanks,
Anoop

[This message has been edited by Nair Anoop (edited August 02, 2001).]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Changing servlet requires Tomcat restart