java.lang.NoClassDefFoundError: javax/persistence/SharedCacheMode

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 JIRA by igor spasic, 1 year ago
javax/persistence/SharedCacheMode
via Stack Overflow by NYAMI Stephane
, 2 years ago
javax/persistence/SharedCacheMode
java.lang.NoClassDefFoundError: javax/persistence/SharedCacheMode
at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787)
at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:645)
at org.apache.felix.framework.resolver.WireImpl.getClass(WireImpl.java:99)
at org.apache.felix.framework.ModuleImpl.searchImports(ModuleImpl.java:1390)
at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:722)
at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at org.ow2.easybeans.persistence.xml.JPersistenceUnitInfoLoader.loadPersistenceUnitInfoImplList(JPersistenceUnitInfoLoader.java:233)
at org.ow2.easybeans.persistence.xml.JPersistenceUnitInfoHelper.getPersistenceUnitInfoList(JPersistenceUnitInfoHelper.java:118)
at org.ow2.easybeans.persistence.xml.PersistenceXmlFileAnalyzer.analyzePersistenceXmlFile(PersistenceXmlFileAnalyzer.java:130)
at org.ow2.jonas.ejb.easybeans.EasyBeansService.__getPersistenceUnitManager(EasyBeansService.java:880)
at org.ow2.jonas.ejb.easybeans.EasyBeansService.getPersistenceUnitManager(EasyBeansService.java)
at org.ow2.jonas.web.base.BaseWebContainerService.registerWar(BaseWebContainerService.java:836)
at org.ow2.jonas.web.base.BaseWebContainerService.registerWar(BaseWebContainerService.java:1257)
at org.ow2.jonas.web.base.proxy.HttpOnDemandProxy.addWar(HttpOnDemandProxy.java:352)
at org.ow2.jonas.web.base.WARDeployer.doDeploy(WARDeployer.java:70)
at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer$1.execute(AbsDeployer.java:93)
at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer$1.execute(AbsDeployer.java:91)
at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer.deploy(AbsDeployer.java:91)
at org.ow2.util.ee.deploy.impl.deployer.DeployerManager.deploy(DeployerManager.java:148)
at org.ow2.jonas.deployablemonitor.DeployableMonitor.detectNewArchives(DeployableMonitor.java:491)
at org.ow2.jonas.deployablemonitor.DeployableMonitor.checkNewArchives(DeployableMonitor.java:306)
at org.ow2.jonas.deployablemonitor.DeployableMonitor.run(DeployableMonitor.java:216)

Users with the same issue

Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.