Home

Tomcat Manager Application


[Introduction] [Commands] [Security]

Introduction

Tomcat ships with a web application (by default installed at context path /manager) that facilitates installing, starting, stopping, removing, listing information, and reloading (that is, forcing a reload of all class files without removing the application from service) of other web 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 "install" command that prevents installing, removing, and then reinstalling an application from the same URL for a web application archive (WAR) file. To work around this, either reinstall the application from a different WAR file URL, or install 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.

Use path=/ for the ROOT context.

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

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.

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$