Tomcat 4.0 Manager Application


[Introduction] [Commands] [Security]

Introduction

Tomcat 4.0 ships with a web application (by default installed at context path /manager) that facilitates deploying, undeploying, and reloading (that is, forcing a reload of all class files without removing the application from service) of other applications that are running in the same virtual host as the Manager application itself. This application is suited to scripted operation, because it can be executed from any client program that can issue HTTP requests. As such, it is complementary to other administrative applications that have a more human-oriented user interface.

WARNING - As of the Tomcat 4.0 milestone 2 release, there is a bug in the operation of the "deploy" command that prevents deploying, undeploying, and then redeploying an application from the same URL for a web application archive (WAR) file. To work around this, either redeploy the application from a different WAR file URL, or deploy from an unpacked directory (on the same server that Tomcat is running on).

Available Commands

The Manager application servlet responds to action requests that are encoded as the extra path information, and request parameters, of HTTP requests made to the manager application. The following command descriptions assume that you have installed the Manager application on context path /manager on your local host installation of Tomcat 4.0.

The syntax of the URL for a web application archive must conform to one of the following patterns to be successfully deployed:

For ease of script processing, the response generated by the Manager application servlet is rendered with content type text/plain. The first line of the response starts with "OK - " or "FAIL - " depending on whether the requested operation was successful or not, followed by a descriptive summary of the operation that took place, or the error that prevented the requested operation from taking place. If the /list operation was requested, this line is followed by a list of the context paths of all deployed web applcations in this virtual host, one per line.

Security Considerations

Obviously, the Manager application can have significant impacts on a running instance of Tomcat. Therefore, it should not be (and is not) enabled by default. The following security considerations apply to this application.



$Id$