Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Hibernate PersistenceException: Invalid persistence.xml

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:
This cake looks terrible, but it tastes great! Now take a bite out of this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic