Ubuntu – How to redeploy host-manager webapp on Tomcat 7

tomcatUbuntu

I have Tomcat 7 installed on Ubuntu 12.04, and I installed the package tomcat7-admin, which gave me two webapps: manager and host-manager. Then in the manager I accidentally undeployed the host-manager, and I can't seem to bring it back. I looked in the CATALINA_BASE/webapps, neither of the webapps is there. Reinstalling the package tomcat7-admin didn't do anything.

What should I do to bring back the host-manager webapp? There has to be some simple solution which I can't see myself.

Best Answer

You could try reinstalling all of Tomcat or simply download the latest ZIP file from http://tomcat.apache.org/download-70.cgi/ and copy webapps/host-manager to your existing Tomcat webapps dir.

UPD

Ubuntu 10.04 includes Tomcat 6 but I'm guessing Tomcat 7 is implemented in the same way.

The host-manager is installed in /usr/share/tomcat6-admin/host-manager which is referenced by /etc/tomcat6/Catalina/localhost/host-manager.xml. In there, I find:

<Context path="/host-manager"
    docBase="/usr/share/tomcat6-admin/host-manager"
    antiResourceLocking="false" privileged="true" />