Professional Documents
Culture Documents
How To Run Simple Program Using Spring and Hibernate
How To Run Simple Program Using Spring and Hibernate
How To Run Simple Program Using Spring and Hibernate
Step 1:
Get project from
http://www.zabada.com/technology/Wiki.jsp?page=ZabadaSpringRecipesExampleCode
Step 2:
Copy lib and lib and lib-build from that project to the a separate folder say temp
Step 3:
oracle drivers ojdbc14.jar and ojdbc14_g.jar need to be added to the lib folder.
eg: C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib
copy the two files and paste it into the temp\lib folder
Step 4:
Create project folder say zabada-spring-recipes that should contains the following folder
and files:
1. conf
2. lib
3. lib-build
4. src
5. war
6. buile.xml (file)
in base dir we have extra a xml file called filename.hbm specifies mapping table and its
fields in database (mapping )
go to command window
change dir as your project dir
type command as “ant war”
you will have a .war file in your build folder
simply copy it and paste in your tomcat webapps folder