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.

|
Current Comments
5 comments so far (post your own) View All Comments Latest 10 Comments:i am having same problem as above please help.its my first time
Posted by nikhil on Friday, 03.7.08 @ 13:29pm | #51820
Hi Deepak,
While compiling the project i am getting error that version miss match of xwork.jar in lib.
Due to this Build failed.
please help on this.
Posted by Nams on Tuesday, 12.25.07 @ 10:58am | #43677
Hi,
This site is very useful and had a very good materials.
I followed the steps finally i am getting Jasper Exception and many exception followed by that,
I am in the final steps kindly give me the solution to execute the application
Posted by Rubadevi on Friday, 07.13.07 @ 16:02pm | #21212
IF u are getting that JDBC connect exception , make sure that u have placed the mysql connector jar file in the lib folder under WEB-INF..That made our code work fine..
Regards,
Venu
Posted by venu on Tuesday, 04.3.07 @ 19:57pm | #13288
Presentaion methology & resource avaiability is rocking in the tutorial.
..............................................
But i am having my query pls solve...Letyou in step whats i have done .
1. Copy project.zip and extract it into webapps directory in tomcat.
2. Installed MYSQL and create database & table as prescribed.
3. As spring,hibernate & struts .jar are already been added so I think no need to install them seprately,as i have not done.Just copy project directory into Tomcats webapps folder.
..............
Error Facing while Executing
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext-hibernate.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.MethodInvocationException: Property 'driverClassName' threw exception; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Could not load JDBC driver class [com.mysql.jdbc.Driver]; nested exception is java.lang.ClassNotFoundException: com.mysql.jdbc.Driver]
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:523)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
***********************************
Whats The Solution:Pls Let Me Know Where I Am Wrong.
Thanks
Posted by yash on Wednesday, 03.7.07 @ 16:35pm | #10988