Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Changing servlet requires Tomcat restart

 
Nair Anoop
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic