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

openxava | adan-gmc | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Seems that ChangePassword is not an EJB3 Entity nor transient model class

    openxava | 2 years ago | adan-gmc
    java.lang.ClassCastException: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider
  2. 0

    EJB deployment error when migrating to jboss 6.1

    Stack Overflow | 5 years ago | Dohan
    java.lang.ClassCastException: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider
  3. 0

    JBoss DEPLOYMENT ERROR: | jboss5.x

    solutionscore.com | 2 years ago
    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

    Running jboss 6.0

    Stack Overflow | 6 years ago | mani
    java.lang.ClassCastException: org.eclipse.persistence.jpa.PersistenceProvider cannot be cast to javax.persistence.spi.PersistenceProvider

    Root Cause Analysis

    1. java.lang.ClassCastException

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

      at org.jboss.jpa.builder.DefaultCEMFBuilder.build()
    2. org.jboss.jpa
      DefaultCEMFBuilder.build
      1. org.jboss.jpa.builder.DefaultCEMFBuilder.build(DefaultCEMFBuilder.java:46)[:1.0.2-alpha-4]
      1 frame
    3. JBoss Application Server EJB3
      HackCEMFBuilder.build
      1. org.jboss.as.jpa.scanner.HackCEMFBuilder.build(HackCEMFBuilder.java:49)[:6.1.0.Final]
      1 frame
    4. org.jboss.jpa
      PersistenceUnitDeployment.start
      1. org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:275)[:1.0.2-alpha-4]
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_80]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[:1.7.0_80]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[:1.7.0_80]
      4. java.lang.reflect.Method.invoke(Unknown Source)[:1.7.0_80]
      4 frames
    6. JBoss Reflection
      BasicMethodJoinPoint.dispatch
      1. org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:60)[jboss-reflect.jar:2.2.1.SP1]
      2. org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:168)[jboss-reflect.jar:2.2.1.SP1]
      3. org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)[jboss-reflect.jar:2.2.1.SP1]
      3 frames
    7. JBoss Microcontainer Kernel
      InstallsAwareAction.installAction
      1. org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:257)[jboss-kernel.jar:2.2.0.SP2]
      2. org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)[jboss-kernel.jar:2.2.0.SP2]
      3. org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:125)[jboss-kernel.jar:2.2.0.SP2]
      4. org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72)[jboss-kernel.jar:2.2.0.SP2]
      5. org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:202)[jboss-kernel.jar:2.2.0.SP2]
      6. org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)[jboss-kernel.jar:2.2.0.SP2]
      7. org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)[jboss-kernel.jar:2.2.0.SP2]
      7 frames
    8. JBoss Microcontainer Dependency
      AbstractController.install
      1. org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)[jboss-dependency.jar:2.2.0.SP2]
      2. org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)[jboss-dependency.jar:2.2.0.SP2]
      3. org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)[jboss-dependency.jar:2.2.0.SP2]
      4. org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)[jboss-dependency.jar:2.2.0.SP2]
      5. org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)[jboss-dependency.jar:2.2.0.SP2]
      6. org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)[jboss-dependency.jar:2.2.0.SP2]
      7. org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)[jboss-dependency.jar:2.2.0.SP2]
      8. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)[jboss-dependency.jar:2.2.0.SP2]
      9. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)[jboss-dependency.jar:2.2.0.SP2]
      10. org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:894)[jboss-dependency.jar:2.2.0.SP2]
      11. org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:641)[jboss-dependency.jar:2.2.0.SP2]
      11 frames
    9. JBoss Deployers VFS
      BeanMetaDataDeployer.deploy
      1. org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:182)[:2.2.2.GA]
      2. org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:58)[:2.2.2.GA]
      2 frames
    10. JBoss Deployers SPI
      AbstractRealDeployer.deploy
      1. org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:63)[:2.2.2.GA]
      2. org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)[:2.2.2.GA]
      2 frames
    11. JBoss Deployers Impl
      DeployersImpl.install
      1. org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)[:2.2.2.GA]
      2. org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832)[:2.2.2.GA]
      3. org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550)[:2.2.2.GA]
      4. org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1571)[:2.2.2.GA]
      5. org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491)[:2.2.2.GA]
      5 frames
    12. JBoss Microcontainer Dependency
      AbstractController.change
      1. org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)[jboss-dependency.jar:2.2.0.SP2]
      2. org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)[jboss-dependency.jar:2.2.0.SP2]
      3. org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)[jboss-dependency.jar:2.2.0.SP2]
      4. org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)[jboss-dependency.jar:2.2.0.SP2]
      5. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)[jboss-dependency.jar:2.2.0.SP2]
      6. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)[jboss-dependency.jar:2.2.0.SP2]
      7. org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939)[jboss-dependency.jar:2.2.0.SP2]
      8. org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)[jboss-dependency.jar:2.2.0.SP2]
      8 frames
    13. JBoss Deployers Impl
      MainDeployerImpl.process
      1. org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983)[:2.2.2.GA]
      2. org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076)[:2.2.2.GA]
      3. org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679)[:2.2.2.GA]
      3 frames
    14. JBoss Application Server System
      MainDeployerPlugin.process
      1. org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106)[:6.1.0.Final]
      1 frame
    15. org.jboss.profileservice
      ProfileDeployAction.installActionInternal
      1. org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143)[:0.2.2]
      2. org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:151)[:0.2.2]
      3. org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94)[:0.2.2]
      3 frames
    16. JBoss Microcontainer Kernel
      InstallsAwareAction.installAction
      1. org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)[jboss-kernel.jar:2.2.0.SP2]
      2. org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)[jboss-kernel.jar:2.2.0.SP2]
      2 frames
    17. JBoss Microcontainer Dependency
      AbstractController.change
      1. org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)[jboss-dependency.jar:2.2.0.SP2]
      2. org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)[jboss-dependency.jar:2.2.0.SP2]
      3. org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)[jboss-dependency.jar:2.2.0.SP2]
      4. org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)[jboss-dependency.jar:2.2.0.SP2]
      5. org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)[jboss-dependency.jar:2.2.0.SP2]
      6. org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)[jboss-dependency.jar:2.2.0.SP2]
      7. org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)[jboss-dependency.jar:2.2.0.SP2]
      8. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)[jboss-dependency.jar:2.2.0.SP2]
      9. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)[jboss-dependency.jar:2.2.0.SP2]
      10. org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939)[jboss-dependency.jar:2.2.0.SP2]
      11. org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)[jboss-dependency.jar:2.2.0.SP2]
      11 frames
    18. org.jboss.profileservice
      AbstractProfileService.activateProfile
      1. org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicProfileActivation.start(ProfileActivationWrapper.java:190)[:0.2.2]
      2. org.jboss.profileservice.dependency.ProfileActivationWrapper.start(ProfileActivationWrapper.java:87)[:0.2.2]
      3. org.jboss.profileservice.dependency.ProfileActivationService.activateProfile(ProfileActivationService.java:215)[:0.2.2]
      4. org.jboss.profileservice.dependency.ProfileActivationService.activate(ProfileActivationService.java:159)[:0.2.2]
      5. org.jboss.profileservice.AbstractProfileService.activateProfile(AbstractProfileService.java:154)[:0.2.2]
      5 frames
    19. JBoss Application Server System
      DeploymentScanner.addURL
      1. org.jboss.system.tools.ProfileServiceToolsFacade.addURI(ProfileServiceToolsFacade.java:233)[:6.1.0.Final]
      2. org.jboss.system.tools.LegacyDeploymentScannerAdapter.addURL(LegacyDeploymentScannerAdapter.java:140)[:6.1.0.Final]
      3. org.jboss.system.tools.DeploymentScanner.addURL(DeploymentScanner.java:91)[:6.1.0.Final]
      4. org.jboss.system.tools.DeploymentScanner.addURL(DeploymentScanner.java:83)[:6.1.0.Final]
      4 frames
    20. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_80]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[:1.7.0_80]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[:1.7.0_80]
      4. java.lang.reflect.Method.invoke(Unknown Source)[:1.7.0_80]
      4 frames
    21. org.jboss.mx
      ReflectedDispatcher.invoke
      1. org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)[:6.0.0.GA]
      1 frame
    22. JBoss Application Server J2SE
      MBeanServerImpl.invoke
      1. org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)[:6.0.0.GA]
      2. org.jboss.mx.server.Invocation.invoke(Invocation.java:88)[:6.0.0.GA]
      3. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271)[:6.0.0.GA]
      4. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670)[:6.0.0.GA]
      4 frames
    23. JBoss Application Server System JMX
      MBeanServerWrapper.invoke
      1. org.jboss.system.server.jmx.MBeanServerWrapper.invoke(MBeanServerWrapper.java:138)[:6.1.0.Final]
      1 frame
    24. Java RT
      Thread.run
      1. javax.management.remote.rmi.RMIConnectionImpl.doOperation(Unknown Source)[:1.7.0_80]
      2. javax.management.remote.rmi.RMIConnectionImpl.access$300(Unknown Source)[:1.7.0_80]
      3. javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(Unknown Source)[:1.7.0_80]
      4. javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(Unknown Source)[:1.7.0_80]
      5. javax.management.remote.rmi.RMIConnectionImpl.invoke(Unknown Source)[:1.7.0_80]
      6. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_80]
      7. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[:1.7.0_80]
      8. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[:1.7.0_80]
      9. java.lang.reflect.Method.invoke(Unknown Source)[:1.7.0_80]
      10. sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)[:1.7.0_80]
      11. sun.rmi.transport.Transport$2.run(Unknown Source)[:1.7.0_80]
      12. sun.rmi.transport.Transport$2.run(Unknown Source)[:1.7.0_80]
      13. java.security.AccessController.doPrivileged(Native Method)[:1.7.0_80]
      14. sun.rmi.transport.Transport.serviceCall(Unknown Source)[:1.7.0_80]
      15. sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)[:1.7.0_80]
      16. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)[:1.7.0_80]
      17. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.access$400(Unknown Source)[:1.7.0_80]
      18. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(Unknown Source)[:1.7.0_80]
      19. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(Unknown Source)[:1.7.0_80]
      20. java.security.AccessController.doPrivileged(Native Method)[:1.7.0_80]
      21. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)[:1.7.0_80]
      22. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)[:1.7.0_80]
      23. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)[:1.7.0_80]
      24. java.lang.Thread.run(Unknown Source)[:1.7.0_80]
      24 frames