Chapter 7.4 Deploying Web Applications using the Client Deployer Package
You can deploy web applications using the Tomcat Client Deployer (TCD). A TCD is a package which you can use to validate, compile, compress to .WAR, and deploy web applications to production or development of Tomcat servers.
This method of deployment uses the Tomcat Manager. The target Tomcat server must also be running.
This method assumes that the user is familiar with Apache Ant for using the TCD.
The TCD includes a ready-to-use Ant script with the following targets:
- compile (default): Compile and validate the web application.
- deploy : Deploy a compiled or non-compiled web application to a Tomcat server.
- undeploy: Undeploy a web application.
- start: Start a web application.
- reload: Reload a web application.
- stop: Stop the web application.
Create the deployer.properties in the TCD installation directory root for the deployment configuration. Add the following name=value pairs per line:
- build: The used build folder is
${build}/webapp/${path}by default. - webapp: This directory contains the exploded web application which are compiled and validated.
- path: By default, the deployed context path of the web application is
/myapp. - url: This is the absolute URL to the Tomcat Manager web application of a running Tomcat server.
- username: This is the Tomcat Manager Username.
- password: This is the Tomcat Manager Password.


