How can i restart one application hosted in Tomcat 6.0?
I'm looking for a command line command. Replace *.war file or doing this by Tomcat's http management page is not solution for for problem.
Thanks
How can i restart one application hosted in Tomcat 6.0?
I'm looking for a command line command. Replace *.war file or doing this by Tomcat's http management page is not solution for for problem.
Thanks
Tomcat has no feature to graceful restart the server.
You can use the manager application and make a url call from the command line using e. g. cURL to restart a certain application.
To reload an application you can use the following command line call (using curl):
curl --user username:password http://yourserver:8080/manager/html/reload?path=/yourappname
There is no function but a feature. Touch the web.xml from code without really modifing it, but according to the API this is not recommended.