Compiling and testing the application

In this application we will compile and deploy the application on tomcat.
You can download the full running code of the application from here.
Unzip the file to tomcat webapps directory and to compile the project go to
the project\WEB-INF\src of your poject and then use ant tool to compile the
application. Here is the out put of the process.
C:\Documents and Settings\Administrator>cd
C:\tomcat\apache-tomcat-5.5.12\webapps\project\WEB-INF\src
C:\tomcat\apache-tomcat-5.5.12\webapps\project\WEB-INF\src>ant
Buildfile: build.xml
clean:
[delete] Deleting directory C:\tomcat\apache-tomcat-5.5.12\webapps\project\WEB-INF\classes
[mkdir] Created dir: C:\tomcat\apache-tomcat-5.5.12\webapps\project\WEB-INF\classes
prepare:
resources:
[copy] Copying 2 files to C:\tomcat\apache-tomcat-5.5.12\webapps\project\WEB-INF\src\classes
compile:
[javac] Compiling 18 source files to C:\tomcat\apache-tomcat-5.5.12\webapps\project\WEB-INF\src\classes
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[jar] Building jar: C:\tomcat\apache-tomcat-5.5.12\webapps\project\WEB-INF\lib\project.jar
project:
all:
BUILD SUCCESSFUL
Total time: 9 seconds
C:\tomcat\apache-tomcat-5.5.12\webapps\project\WEB-INF\src> |
Now start the tomcat and type http://localhost:8080/project in your browser.
You browser should show the following home page:
Now you can test the full application by selection the different links.
Form more information on deploying the application you also view our earlier
section Integrate Struts, Hibernate and Spring.

|