This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
Similar Threads
tomcat finding files
Tomcat 404 Error on Every New Servlet I Create
Servlets exception thrown
deploying jsps and servlets to tomcat
Do I need to restart TOMCAT???????