weblogic.deployment.EnvironmentException: Error processing persistence unit example of module enterprise: Error instantiating the Persistence Provider class org.eclipse.persistence.jpa.PersistenceProvider of the PersistenceUnit example: java.lang.ClassCastException: org.eclipse.persistence.jpa.PersistenceProvider cannot be cast to javax.persistence.spi.PersistenceProvider

Oracle Community | 782363 | 6 years ago
  1. 0

    JPA 2.0 in Weblogic 10.0 MP1

    Oracle Community | 6 years ago | 782363
    weblogic.deployment.EnvironmentException: Error processing persistence unit example of module enterprise: Error instantiating the Persistence Provider class org.eclipse.persistence.jpa.PersistenceProvider of the PersistenceUnit example: java.lang.ClassCastException: org.eclipse.persistence.jpa.PersistenceProvider cannot be cast to javax.persistence.spi.PersistenceProvider
  2. 0

    Duplicate persistence units in JPA weblogic

    Oracle Community | 6 years ago | 780808
    weblogic.deployment.EnvironmentException: duplicate persistence units with name sfw-persistence-unit in scope sfw-poc-condicao-pagamento-web.war. First PU location: file:/C:/java/servers/Oracle/Middleware/user_projects/domains/base_domain/servers/softway/tmp/_WL_user/sfw-poc-condicao-pagamento-web/rrg25b/war/WEB-INF/lib/sfw-class-loader-0.0.1-SNAPSHOT.jar. Second PU location: file:/C:/java/servers/Oracle/Middleware/user_projects/domains/base_domain/servers/softway/tmp/_WL_user/sfw-poc-condicao-pagamento-web/rrg25b/war/WEB-INF/lib/sfw-custom-jar-0.0.1-20100622.030351-65.jar
  3. 0

    Hibernate 3.6 Final (JPA 2.0) + WL 10.3.x :Unab... | Oracle Community

    oracle.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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hibernate Community • View topic - problem with weblogic 11r1 with hibernate and mysql

    hibernate.org | 8 months ago
    java.lang.Exception: Exception received from deployment driver. See Error Log view for more detail.
  6. 0

    java.lang.ClassNotFoundException: org.hibernate.ejb.HibernatePersistence

    com.br | 1 year ago
    weblogic.deployment.EnvironmentException: Error processing persitence unit evertonconnection of module TesteEJB.jar: Error instantiating the Persistence Provider class org.hibernate.ejb.HibernatePersistence of the PersistenceUnit evertonconnection: java.lang.ClassNotFoundException: org.hibernate.ejb.HibernatePersistence

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. weblogic.deployment.EnvironmentException

      Error processing persistence unit example of module enterprise: Error instantiating the Persistence Provider class org.eclipse.persistence.jpa.PersistenceProvider of the PersistenceUnit example: java.lang.ClassCastException: org.eclipse.persistence.jpa.PersistenceProvider 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.loadPersistenceDescriptors(AbstractPersistenceUnitRegistry.java:111)
      6. weblogic.deployment.ModulePersistenceUnitRegistry.<init>(ModulePersistenceUnitRegistry.java:58)
      6 frames
    3. Atmosphere weblogic
      WebAppModule.prepare
      1. weblogic.servlet.internal.WebAppModule.setupPersistenceUnitRegistry(WebAppModule.java:1812)
      2. weblogic.servlet.internal.WebAppModule.getWebClassLoader(WebAppModule.java:1604)
      3. weblogic.servlet.internal.WebAppServletContext.initClassLoader(WebAppServletContext.java:2969)
      4. weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:438)
      5. weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:484)
      6. weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:418)
      7. weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:976)
      8. weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:381)
      8 frames
    4. weblogic.application.internal
      DeploymentCallbackFlow$1.next
      1. weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
      2. weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
      3. weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:507)
      3 frames
    5. weblogic.application.utils
      StateMachineDriver.nextState
      1. weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
      1 frame
    6. weblogic.application.internal
      BaseDeployment$1.next
      1. weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:149)
      2. weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:45)
      3. weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:1221)
      3 frames
    7. weblogic.application.utils
      StateMachineDriver.nextState
      1. weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
      1 frame
    8. weblogic.application.internal
      DeploymentStateChecker.prepare
      1. weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:367)
      2. weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
      3. weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
      3 frames
    9. weblogic.deploy.internal
      DeploymentServiceDispatcher.prepare
      1. weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
      2. weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:207)
      3. weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:98)
      4. weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
      5. weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
      6. weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
      7. weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
      8. weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
      8 frames
    10. weblogic.deploy.service
      DeploymentReceiverCallbackDeliverer$1.run
      1. weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
      2. weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
      3. weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
      3 frames
    11. weblogic.work
      ExecuteThread.run
      1. weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
      2. weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
      3. weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
      3 frames