Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in using ORM.xml JPA  RSS feed

Jai Pra
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Every time I configure orm.xml in the Persistance.xml, I am getting the below error:

E CWWJP0015E: An error occurred in the org.hibernate.ejb.HibernatePersistence persistence provider when it attempted to create the container entity manager factory for the XYZ persistence unit. The following error occurred: PersistenceUnit: XYZ Unable to build EntityManagerFactory

If I remove the entry from Persistance.xml it works fine, but the Entity Manager is not able to locate the entity class since I am not using JPA annotation
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!