weblogic.deployment.EnvironmentException: Error processing persistence unit TrivnetEJB of module TrivnetEJB.jar: Error instantiating the Persistence Provider class org.hibernate.ejb.HibernatePersistence of the PersistenceUnit TrivnetEJB: java.lang.ClassCastException: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider

hivmr.com | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    db:: 3.72::Unable to hot-deploy EJB/Spring/Hibernate application in JBo 89

    hivmr.com | 1 year ago
    weblogic.deployment.EnvironmentException: Error processing persistence unit TrivnetEJB of module TrivnetEJB.jar: Error instantiating the Persistence Provider class org.hibernate.ejb.HibernatePersistence of the PersistenceUnit TrivnetEJB: java.lang.ClassCastException: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider
  2. 0

    db:: 2.77::org.hibernate.internal.SessionFactoryImpl cannot be cast to org.hibernate.SessionFactory d3

    hivmr.com | 1 year ago
    weblogic.deployment.EnvironmentException: Error processing persistence unit TrivnetEJB of module TrivnetEJB.jar: Error instantiating the Persistence Provider class org.hibernate.ejb.HibernatePersistence of the PersistenceUnit TrivnetEJB: java.lang.ClassCastException: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider
  3. 0

    db:: 2.99::Error javax.persistence.PersistenceException: [PersistenceUnit: org.jbpm.persistence.jpa] Unable to build EntityManagerFactory.... while Deploying jbpm5.1 web example with human task on jboss5.1 server m1

    hivmr.com | 9 months ago
    weblogic.deployment.EnvironmentException: Error processing persistence unit TrivnetEJB of module TrivnetEJB.jar: Error instantiating the Persistence Provider class org.hibernate.ejb.HibernatePersistence of the PersistenceUnit TrivnetEJB: java.lang.ClassCastException: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Environment Exception:Duplicate Persistence Units And Moduloe Exception

    wpthm.com | 2 years ago
    weblogic.deployment.EnvironmentException: duplicate persistence units with name ELCMEntities.jpr in scope FBN113Base. First PU location: file:/D:/JdevApp/system11.1.2.0.38.60.17/o.j2ee/drs/FBN113Base/ELCMEJBEJB.jar/. Second PU location: file:/D:/JdevApp/system11.1.2.0.38.60.17/o.j2ee/drs/FBN113Base/ELGatewayEJB.jar/

    Root Cause Analysis

    1. weblogic.deployment.EnvironmentException

      Error processing persistence unit TrivnetEJB of module TrivnetEJB.jar: Error instantiating the Persistence Provider class org.hibernate.ejb.HibernatePersistence of the PersistenceUnit TrivnetEJB: java.lang.ClassCastException: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider

      at weblogic.deployment.PersistenceUnitInfoImpl.createEntityManagerFactory()
    2. weblogic.deployment
      ModulePersistenceUnitRegistry.init
      1. weblogic.deployment.PersistenceUnitInfoImpl.createEntityManagerFactory(PersistenceUnitInfoImpl.java:344)
      2. weblogic.deployment.PersistenceUnitInfoImpl.createEntityManagerFactory(PersistenceUnitInfoImpl.java:332)
      3. weblogic.deployment.PersistenceUnitInfoImpl.init(PersistenceUnitInfoImpl.java:134)
      4. weblogic.deployment.AbstractPersistenceUnitRegistry.storeDescriptors(AbstractPersistenceUnitRegistry.java:336)
      5. weblogic.deployment.AbstractPersistenceUnitRegistry.loadPersistenceDescriptor(AbstractPersistenceUnitRegistry.java:250)
      6. weblogic.deployment.ModulePersistenceUnitRegistry.init(ModulePersistenceUnitRegistry.java:69)
      6 frames
    3. weblogic.ejb.container
      EJBModule.setupPersistenceUnitRegistry
      1. weblogic.ejb.container.deployer.EJBModule.setupPersistenceUnitRegistry(EJBModule.java:221)
      1 frame