Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate PersistenceException: Invalid persistence.xml  RSS feed

Brian Storenson
Ranch Hand
Posts: 44
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having problems building my EntityManagerFactory. I think it is related to my persistence.xml. I have been working at this problem for the last 5-6 hours I think I have run out of resources. I would appreciate any tips. Thanks.

Here is my error message

Here is my integration test

Here is my persistence.xml

I've looked through my pom.xml and made sure everything was there. I tried looking through my dependencies. I have my hibernate entity manager jar, and my hibernate jpa model gen jar. I've tried <provider>org.hibernate.ejb.HibernatePersistenceProvider</provider> and <provider>org.hibernate.ejb.PersistenceProvider</provider> I've also tried <jta-data-source>java:/jdbc/TestDB</jta-data-source> Lastly, I've tried different schema locations. One of them is commented out. Does anyone have any suggestions? Are there topics I can try googling?

I read 1.2.1. The persistence.xml file at

Btw, I'm using this hibernate version:
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!