aspose file tools*
The moose likes Servlets and the fly likes Executing servlets using Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Executing servlets using Tomcat" Watch "Executing servlets using Tomcat" New topic
Author

Executing servlets using Tomcat

Sudhir V
Ranch Hand

Joined: Dec 25, 2002
Posts: 143
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 ]

Sudhir V<br />(SCJP 1.2, SCWCD, OCA, SCBCD)
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
Check out the manager app to reload the servlet without having to shutdown and restart the container.


Dave
Sudhir V
Ranch Hand

Joined: Dec 25, 2002
Posts: 143
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

Joined: Mar 22, 2000
Posts: 12769
    
    5
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Executing servlets using Tomcat