Home Struts Hibernate-spring Compiling and testing the application



Compiling and testing the application
Posted on: February 11, 2008 at 12:00 AM
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.  

Related Tags for Compiling and testing the application:
cwebcomfiletomcatantprocessapplicationdirectoryiodownloadziploadwebappcompileippiltoolooappunzipmpitorunproceilappssrccanliputuseulfromceinmntoutpswebappscajadesrunningweb-infdirfullpircproppcatdodowntorsrectctordirectessatisirinfllmcgoandcodcodewebazssrocthatiapctojeicaicaplprocesprojprndodeonomolonl


More Tutorials from this section

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

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.