TOC PREV NEXT INDEX

Building and Deploying timezone5


For the tutorial applications, we rely on Ant as a build tool and Tomcat 6 as the container to run the application. To build a .war file successfully, complete the following steps:


1. Ensure that Tomcat 6 is running.
2. Use ant clean to clean up the source directory of the application.
3. To compile the source code and generate a .war file with all the required resources, in the console, type:
ant
By default, the .war file created is for Tomcat 6. The .war file will be created in the dist directory at the root level of the application.
4. To deploy the .war file to Tomcat 6, copy the timezone5.war file into the Tomcat 6 webapps directory.
5. To interact with the application, point your web browser at the following URL, making adjustments for your environment as required. For example, port 8080 is the default port that Tomcat uses, but if you have changed this in your installation, change the URL accordingly.
http://localhost:8080/timezone5

Note: If you would like to deploy the .war file to an application server other than Tomcat 6 (JBoss4.2, for example), you need to explicitly refer to a different ant target when building the .war file. Use ant help to list the available targets for this tutorial.

This version of TimeZone has the same functionality as timezone4, but should look completely different. Styles have been applied to the application through the stylesheet, which uses images located in the web/images folder. With the finishing touches applied, the application is now ready to be presented to the world.



Copyright 2005-2009. ICEsoft Technologies, Inc.
TOC PREV NEXT INDEX