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

coderanch.com | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider (JBoss/WildFly forum at Coderanch)

    coderanch.com | 1 year ago
    java.lang.ClassCastException: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider
  2. 0

    org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider (JBoss/WildFly forum at Coderanch)

    coderanch.com | 7 months ago
    java.lang.ClassCastException: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider
  3. 0

    org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider

    Coderanch | 5 years ago | gourav chouhan
    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

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider

      at org.jboss.as.jpa.builder.JPA2CEMFBuilder.build()
    2. org.jboss.as
      JPA2CEMFBuilder.build
      1. org.jboss.as.jpa.builder.JPA2CEMFBuilder.build(JPA2CEMFBuilder.java:51)
      1 frame
    3. org.jboss.jpa
      PersistenceUnitDeployment.start
      1. org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:316)
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    5. JBoss Reflection
      BasicMethodJoinPoint.dispatch
      1. org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
      2. org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
      3. org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
      3 frames
    6. JBoss Microcontainer Kernel
      InstallsAwareAction.installAction
      1. org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:243)
      2. org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
      3. org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:111)
      4. org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72)
      5. org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
      6. org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
      7. org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
      7 frames
    7. JBoss Microcontainer Dependency
      AbstractController.install
      1. org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
      2. org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
      3. org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
      4. org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      5. org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633)
      6. org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935)
      7. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)
      8. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)
      9. org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:775)
      10. org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
      10 frames
    8. JBoss Deployers VFS
      BeanMetaDataDeployer.deploy
      1. org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121)
      2. org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)
      2 frames
    9. JBoss Deployers SPI
      AbstractRealDeployer.deploy
      1. org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
      2. org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
      2 frames
    10. JBoss Deployers Impl
      DeployersImpl.install
      1. org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
      2. org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1448)
      3. org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1166)
      4. org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1187)
      5. org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1219)
      6. org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1107)
      6 frames
    11. JBoss Microcontainer Dependency
      AbstractController.change
      1. org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      2. org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633)
      3. org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935)
      4. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)
      5. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)
      6. org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:823)
      7. org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      7 frames
    12. JBoss Deployers Impl
      MainDeployerImpl.process
      1. org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:783)
      2. org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:699)
      2 frames