Chapter 4.5 Deployment Options for Tomcat 5
Select an option from the following list to deploy Tomcat:
- Copy unpacked directory hierarchy into a subdirectory found in the
$CATALINA_HOME/webapps/directory. Tomcat assigns a context path to your application based on the subdirectory name you choose.
Ensure that you restart Tomcat after installing or updating your application.
- Copy the web application archive file into the
$CATALINA_HOME/webapps/directory. When you start Tomcat, it automatically expands the web application archive file into its unpacked form, and executes the application.
When you update the application in a later time, replace the web application archive file AND delete the expanded directory created by Tomcat. Restart Tomcat to reflect the changes made.
- Use the Tomcat 5 Manager web application to deploy and undeploy applications on a running Tomcat server.
- Use Manager Ant Tasks in the Build Script to automate the execution of commands to the Manager web application.
- Use the Tomcat Deployer to automatically pre-compile JSPs which are included in the web application before deployment to the server.


