Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Executing servlets using Tomcat

 
Sudhir V
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • 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 ]
 
Dave Vick
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Hi
This is a more simpler way
http://javaboutique.internet.com/tutorials/Tomcat/configure.html#Servlet-Reloading
Thanks
Sudhir
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic