【Error】org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persist

java.lang.ClassCastException: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider

解决方案

删掉webapp下的WEB-INFO/hibernate-jpa-2.0-api-1.0.1.Final.jar


你可能感兴趣的:(【Error】org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persist)