• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Changing servlet requires Tomcat restart

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).]
 
reply
    Bookmark Topic Watch Topic
  • New Topic