“java.lang.AbstractMethodError: org.hibernate.ejb.EntityManagerFactoryImpl.createEntityManager” with Hibernate

后端 未结 2 1772
暗喜
暗喜 2020-12-20 22:46

I\'m working with Hibernate, EJB and a Restfull webservice. I have this exception below, and i don\'t know what to do.

WARNING:   EJB5184:A system exception          


        
相关标签:
2条回答
  • 2020-12-20 23:15

    I've found this: http://kyryloholodnov.wordpress.com/2013/08/19/hibernate-4-2-4-and-jpa-2-1/

    You can see the properties you have to set in order to make Hibernate work with JPA 2.1.

    Cheers !

    0 讨论(0)
  • 2020-12-20 23:18

    AbstractMethodError usually is caused by incompatible binaries; for this specific error there is an opened (unresolved) ticket but with some comments

    As an example, the original issue report mentions a problem calling EntityManagerFactory.createEntityManager(javax.persistence.SynchronizationType, java.util.Map). Well thats a new method added in JPA 2.1. That won't work with Hibernate 4.2 or earlier as 4.2 is JPA 2.0 compliant.

    Check your jar files version for incompatibilities.

    0 讨论(0)
提交回复
热议问题