• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate PersistenceException: Invalid persistence.xml

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 http://docs.jboss.org/jbossas/docs/Server_Configuration_Guide/4/html/ch01s02s01.html

Btw, I'm using this hibernate version:
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!