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

2 Answers 2

up vote 2 down vote accepted

Use JMX, and only allow attaching from localhost.

share|improve this answer

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
    
The security risk is that there is an extra username/password login open to the internet. The advantage is you can do remotely managing, but I don't need that, so it's just an extra security risk. Also, I need to have an extra password to 'remember', and the password is sent in plaintext over the connection. –  Yeti Nov 6 at 8:16

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.