Weblogic 10.3.6 与 hibernate jpa 2 冲突
<Sep 21, 2016 5:26:41 PM CST> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'wechat-manage-cxf' due to error weblogic.application.ModuleException: Failed to load webapp: wechat-manage-cxf.war because of DeploymentException: weblogic.deployment.EnvironmentException: Error processing persistence unit persistenceUnit of module wechat-manage-cxf.war: Error instantiating the Persistence Provider class org.hibernate.ejb.HibernatePersistence of the PersistenceUnit persistenceUnit: java.lang.ClassCastException: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider.
weblogic.application.ModuleException: Failed to load webapp: wechat-manage-cxf.war because of DeploymentException: weblogic.deployment.EnvironmentException: Error processing persistence unit persistenceUnit of module wechat-manage-cxf.war: Error instantiating the Persistence Provider class org.hibernate.ejb.HibernatePersistence of the PersistenceUnit persistenceUnit: java.lang.ClassCastException: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:397)
at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)