Home  >  Forum  >  Hibernate
Post New Query

javax.persistence.PersistenceException: No Persistence provider for Entity


joined on
January 20,2015
Asked on February 10,2015
Hi All,

I am making JPA application with Hibernate and getting exception as below. How to resolve.

Caused by: javax.persistence.PersistenceException: No Persistence provider for EntityManager
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:61)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:39)

joined on
October 10,2013
Replied on February 10,2015

You need to check two things

1. check persistence.xml in META-INF
2.  Check for hibernate-entitymanager jar in you lib, if using gradle it can be like

        compile 'org.hibernate:hibernate-entitymanager:4.3.6.Final'

Write Answer









Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us