Reputation: 1766
I am currently working on a GWT project. I have used the GWT webapplicationcreator shell script to create it with the -maven option since I use maven for building it.
So the problem is that when I package the project, using "mvn package", and deploy it to tomcat, it tells me that it can not find out META-INF/persistence.xml even though in my project I have it at the correct location src/main/webapp/META-INF/persistence.xml. I have even extracted the war file to check that it's out there.
246 [Thread-38] INFO org.hibernate.ejb.Ejb3Configuration - Could not find any META-INF/persistence.xml file in the classpath
Have you ever experienced this weird behaviour ? Can you help me figure it out ?
thanks a lot guys
Upvotes: 2
Views: 4582
Reputation: 744
Check persistence.xml is correctly deployed.
See this very useful link: http://javahowto.blogspot.com/2007/06/where-to-put-persistencexml-in-web-app.html
Upvotes: 2