Home Struts Hibernate-spring Compiling and testing the application
Questions:Ask|Latest

 
 

Share on Google+Share on Google+

Compiling and testing the application

Advertisement
In this application we will compile and deploy the application on tomcat.

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.  

Advertisements

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: February 11, 2008

Related Tutorials

Ask Questions?    Discuss: Compiling and testing the application   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
DMCA.com