Chapter 8: Web Application Administration Figure 8-4: Successful

Chapter 8: Web Application Administration Figure 8-4: Successful deployment of a Web application Before you can start using Ant to manage Web applications, you need to do the following: 1. Install Ant if you do not already have it installed on your system. Refer to Appendix B for more details. 2. Copy the $CATALINA_HOME/ lib/catalina-ant.jar file into Ant s library directory ($ANT_ HOME/lib) or add it to the Ant CLASSPATH. This JAR file contains the Tomcat management task definitions for Ant. 3. Add $ANT_HOME/binto your PATH. 4. Add to your custom build.xmlscript the elements that call the Tomcat manager commands. 5. Of course, as with the Web-based manager UI, you need to add a user with the manager role to Tomcat s user database if such a user does not exist. The following sample build.xmlfile builds and deploys the hello Web application discussed at the beginning of the chapter:
(continued)

For high quality java hosting services please check java web hosting website.

Comments are closed.