This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes tomcat does not refresh servlets? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "tomcat does not refresh servlets?" Watch "tomcat does not refresh servlets?" New topic

tomcat does not refresh servlets?

tarun Mehra

Joined: May 30, 2001
Posts: 12
What changes do I make to tomcat so that it refreshes servlets. Right now it is not refreshing the files at all unless I renmae them which is a big hassle.
Thank you,
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12769
Tomcat is supposed to check servlet class timestamps and reload them. The servlet must have an entry in the web.xml for that application.
In the server.xml file look at the example Context declarations, you should have the attribute reloadable="true" for the application.
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
I use Tomcat 3.2.1. When ever I recompile my servlets and click the refresh button on the browser tomcat loads my updated servlets. As for automatic reloading, I am not sure. I just know I don't have to restart tomcat inorder to see my changes.


So much trouble in the world -- Bob Marley
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: tomcat does not refresh servlets?