Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Hibernate JIRA by Mike Youngstrom, 1 year ago
com.ibm.websphere.persistence.PersistenceProviderImpl incompatible with javax.persistence.spi.PersistenceProvider
via Hibernate JIRA by Mike Youngstrom, 2 years ago
com.ibm.websphere.persistence.PersistenceProviderImpl incompatible with javax.persistence.spi.PersistenceProvider
via GitHub by iwanagah
, 2 years ago
com.ibm.websphere.persistence.PersistenceProviderImpl incompatible with javax.persistence.spi.PersistenceProvider
via Stack Overflow by JJJ
, 1 month ago
org.eclipse.persistence.jpa.PersistenceProvider cannot be cast to javax.persistence.spi.PersistenceProvider
via hibernate.org by Unknown author, 1 year ago
org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider
via GitHub by NghiaHanoi
, 1 year ago
org.eclipse.persistence.jpa.PersistenceProvider cannot be cast to javax.persistence.spi.PersistenceProvider
java.lang.ClassCastException: com.ibm.websphere.persistence.PersistenceProviderImpl incompatible with javax.persistence.spi.PersistenceProvider	at javax.persistence.Persistence$1.isLoaded(Persistence.java:92)	at test.TestListener.contextInitialized(TestListener.java:20)	at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1681)	at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:374)	at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:299)	at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:100)	at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:166)	at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:731)	at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:616)	at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:376)	at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:668)	at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1122)	at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1315)	at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:623)	at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:940)	at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:725)	at com.ibm.ws.runtime.component.ApplicationMgrImpl$1.run(ApplicationMgrImpl.java:1266)	at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:4509)	at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:4687)	at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)	at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1271)	at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2043)	at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:439)	at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)	at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:382)	at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:653)	at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:615)	at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1177)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)	at java.lang.reflect.Method.invoke(Method.java:600)	at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:37)	at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)	at java.lang.reflect.Method.invoke(Method.java:600)	at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:244)	at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1086)	at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:967)	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:848)	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:773)	at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1320)	at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)	at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1213)	at com.ibm.ws.management.application.sync.StartDeploymentTask.startDeployment(StartDeploymentTask.java:236)	at com.ibm.ws.management.application.sync.StartDeploymentTask.fullAppUpdate(StartDeploymentTask.java:113)	at com.ibm.ws.management.application.sync.StartDeploymentTask.performTask(StartDeploymentTask.java:101)	at com.ibm.ws.management.application.sync.AppBinaryProcessor$ExpandApp.expand(AppBinaryProcessor.java:1556)	at com.ibm.ws.management.application.sync.AppBinaryProcessor.postProcessSynchronousExt(AppBinaryProcessor.java:654)	at com.ibm.ws.management.bla.sync.BLABinaryProcessor.postProcess(BLABinaryProcessor.java:569)	at com.ibm.ws.management.bla.sync.BLABinaryProcessor.onChangeCompletion(BLABinaryProcessor.java:451)	at com.ibm.ws.management.repository.FileRepository.postNotify(FileRepository.java:1915)	at com.ibm.ws.management.repository.FileRepository.update(FileRepository.java:1424)	at com.ibm.ws.management.repository.client.LocalConfigRepositoryClient.update(LocalConfigRepositoryClient.java:189)	at com.ibm.ws.sm.workspace.impl.WorkSpaceMasterRepositoryAdapter.update(WorkSpaceMasterRepositoryAdapter.java:655)	at com.ibm.ws.sm.workspace.impl.RepositoryContextImpl.update(RepositoryContextImpl.java:1954)	at com.ibm.ws.sm.workspace.impl.RepositoryContextImpl.synch(RepositoryContextImpl.java:1902)	at com.ibm.ws.sm.workspace.impl.WorkSpaceImpl.synch(WorkSpaceImpl.java:511)	at com.ibm.ws.management.configservice.ConfigServiceImpl.save(ConfigServiceImpl.java:703)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)	at java.lang.reflect.Method.invoke(Method.java:600)	at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:37)	at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)	at java.lang.reflect.Method.invoke(Method.java:600)	at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:244)	at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1086)	at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:967)	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:848)	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:773)	at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1320)	at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)	at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1213)	at com.ibm.ws.management.connector.AdminServiceDelegator.invoke(AdminServiceDelegator.java:181)	at com.ibm.ws.management.connector.rmi.RMIConnectorService.invoke(RMIConnectorService.java:282)	at com.ibm.ws.management.connector.rmi._RMIConnectorService_Tie.invoke(_RMIConnectorService_Tie.java:395)	at com.ibm.ws.management.connector.rmi._RMIConnectorService_Tie._invoke(_RMIConnectorService_Tie.java:160)	at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:622)	at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:475)	at com.ibm.rmi.iiop.ORB.process(ORB.java:513)	at com.ibm.CORBA.iiop.ORB.process(ORB.java:1574)	at com.ibm.rmi.iiop.Connection.respondTo(Connection.java:2841)	at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2714)	at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:63)	at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118)	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)