Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I want to reload (or restart) one specific web application on an Apache Tomcat (6 or 7) server without Tomcat Manager or the automatic Reloadable attribute. Using the manager would give again another security risk, and reloadable attribute does not work when you need to upload/copy large files since it already reloads when the upload has not yet finished.

Being root, it should be easy to reload a specific web application, instead of doing a Tomcat service restart (which reloads every web application on it), right?

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

Use JMX, and only allow attaching from localhost.

share|improve this answer
add comment

Using the manager would give again another security risk

What security risk are you talking about?

wget --http-user=user \
     --http-password=password \
     -q -O - http://localhost:8080/manager/reload?path=/examples

http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html#Supported%20Manager%20Commands

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.