This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes when to restart tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "when to restart tomcat" Watch "when to restart tomcat" New topic
Author

when to restart tomcat

paritosh ranjan
Ranch Hand

Joined: Aug 24, 2007
Posts: 62
Do I need to restart tomcat when I change my deployment descriptor(web.xml)?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41137
    
  45
No, that's not necessary. It's sufficient to reload the web application whose web.xml file you have changed.


Ping & DNS - my free Android networking tools app
paritosh ranjan
Ranch Hand

Joined: Aug 24, 2007
Posts: 62
Is there any event after which we must start tomcat?
or reloading helps every time
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41137
    
  45
If you make changes to the Tomcat configuration (as opposed to changes to one of its web app's configuations) you need to restart the server. Any of the files in TOMCAT_HOME/conf would be examples of this.
paritosh ranjan
Ranch Hand

Joined: Aug 24, 2007
Posts: 62
thanks a lot
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: when to restart tomcat
 
Similar Threads
FAIL - Application at context path
Do I need to restart TOMCAT???????
Trouble restarting Tomcat 6.0.30 with Eclipse
.html files
eclipse tomcat context reloading on each jsp save :(