Zé Carlos
Zé Carlos

Reputation: 3807

application restart in Apache Tomcat 6.0

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

Upvotes: 0

Views: 4994

Answers (2)

Stefan
Stefan

Reputation: 12453

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.

Upvotes: 0

magomi
magomi

Reputation: 6685

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

Upvotes: 2

Related Questions