OK, this probably is supposed to be the easiest thing in the world, but I\'ve been trying for the entire day, and it\'s still not working.. Any help is highly appreciated!
Ok, here is what I did:
Checkout the petclinic sample:
svn co https://src.springframework.org/svn/spring-samples/petclinic/trunk/ petclinic
cd into the petclinic directory
src/main/webapp/WEB-INF/spring/applicationContext-jpa.xml to use Hibernate:
(load-time weaver SHOULD NOT be used with Hibernate, this is for Toplink)jpaVendorAdapter (comment the Toplink part, uncomment the Hibernate part)src/main/webapp/WEB-INF/web.xml to use the applicationContext-jpa.xmlModify the pom.xml to bundle jta.jar in the war (as pointed out by @skaffman):
javax.transaction
com.springsource.javax.transaction
1.1.0
Build the war
mvn install
Deploy it to Tomcat
cp target/petclinic.war $TOMCAT_HOME/webapps
Browse
http://localhost:8080/petclinic