• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Executing servlets using Tomcat

 
Ranch Hand
Posts: 143
  • 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 as servlet container. I am having a problem. When I execute a servlet for the first time it works fine. But when I make some changes to the servlet, recompile it and when I execute it the changes does not seem to appear. I have to shutdown the Tomcat server and then restart it and then the changes in the servlet can be seen. Is there any solution to this?
Thanks
Sudhir
[ December 26, 2002: Message edited by: Sudhir Sudhir ]
[ December 26, 2002: Message edited by: Sudhir Sudhir ]
 
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check out the manager app to reload the servlet without having to shutdown and restart the container.
 
Sudhir V
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
This is a more simpler way
http://javaboutique.internet.com/tutorials/Tomcat/configure.html#Servlet-Reloading
Thanks
Sudhir
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
However, note that having the servlet reload if the date on the servlet class changes does NOT correctly handle the situation in which you make changes to auxiliary classes. For that you need to totally reload the web application with the Manager App.
Bill
 
Here. Have a potato. I grew it in my armpit. And from my other armpit, this tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic