Tomcat Application Commands

The manager application commands are used via a web browser, remember you will be requested to authenicate.

The basic comand line is the following:

http://{hostname}:{portnumber}/manager/{command}?{parameters}

WAR files

The new way of deploying Java 2 Platform, Enterprise Edition Web modules that include Java Servlets and JavaServer Pages relies on packaging the application and associated files into a WebARchive (WAR) file. This seems simple, as the WAR file is the same format as a JavaARchive (JAR) file. However, you also need to create an eXtensisible Markup Language (XML) deployment descriptor (WEB-INF/web.xml) file

To deploy/install a new web application is is best to create a .war file, this basically bundles all the application into one file.

cd /application directory
jar cvf hello.war . (this will produce a WAR file)

Deploying a new application

http://{hostname}:{portnumber}/manager/deploy?path={context_path}

Installing a new application

http://{hostname}:{portnumber}/manager/install?path={context_path}&war={war_url}

List Installed and Deployed applications

http://{hostname}:{portnumber}/manager/list
http://{hostname}:{portnumber}/manager/html/list

The later one will produce the tomcat web application manager

Reload an existing application

http://{hostname}:{portnumber}/manager/reload?path={context_path}

This causes the existing application to shutdown and restart (not the tomcat server), basically it clears all servlets loaded into memory.

List available resources

http://{hostname}:{portnumber}/manager/resources[?type={jndi_type}]

List available security roles

http://{hostname}:{portnumber}/manager/roles

Stop/Start an existing application

http://{hostname}:{portnumber}/manager/stop?path={context_path}
http://{hostname}:{portnumber}/manager/start?path={context_path}

Remove an installed application

http://{hostname}:{portnumber}/manager/remove?path={context_path}

Undeploy a web application

http://{hostname}:{portnumber}/manager/undeploy?path={context_path}

Display session statistics

http://{hostname}:{portnumber}/manager/session?path={context_path}

Invoke the tomcat admin tool

http://{hostname}:{portnumber}/admin/index.jsp

You will be required to authenicate before access is granted. The admin tool will allow you to visually configure the tomcat server.