java.lang.NoClassDefFoundError: Could not initialize class net.sf.ehcache.CacheManager

Oracle Community | Hari - Sites | 2 years ago
  1. 0

    Error while upgrading to Sites 7.6.2 from 7.5

    Oracle Community | 2 years ago | Hari - Sites
    java.lang.NoClassDefFoundError: Could not initialize class net.sf.ehcache.CacheManager
  2. 0

    If you get the error below when running the CDA Unit Tests then stick slf4j-api-1.6.1.jar in the lib directory Also ensure that cda.properties has pt.webdetails.cda.Standalone=true [junit] Testcase: testCdaQueryComponent(pt.webdetails.cda.tests.CdaQueryComponentTest): Caused an ERROR [junit] Could not initialize class net.sf.ehcache.CacheManager [junit] java.lang.NoClassDefFoundError: Could not initialize class net.sf.ehcache.CacheManager [junit] at pt.webdetails.cda.dataaccess.AbstractDataAccess.getCache(AbstractDataAccess.java:226) [junit] at pt.webdetails.cda.dataaccess.SimpleDataAccess.queryDataSource(SimpleDataAccess.java:209) [junit] at pt.webdetails.cda.dataaccess.AbstractDataAccess.doQuery(AbstractDataAccess.java:313) [junit] at pt.webdetails.cda.CdaQueryComponent.execute(CdaQueryComponent.java:161) [junit] at pt.webdetails.cda.tests.CdaQueryComponentTest.testCdaQueryComponent(CdaQueryComponentTest.java:54) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [junit] at java.lang.reflect.Method.invoke(Method.java:597) [junit] at junit.framework.TestCase.runTest(TestCase.java:154) [junit] at junit.framework.TestCase.runBare(TestCase.java:127) [junit] at junit.framework.TestResult$1.protect(TestResult.java:106) [junit] at junit.framework.TestResult.runProtected(TestResult.java:124) [junit] at junit.framework.TestResult.run(TestResult.java:109) [junit] at junit.framework.TestCase.run(TestCase.java:118) [junit] at junit.framework.TestSuite.runTest(TestSuite.java:208) [junit] at junit.framework.TestSuite.run(TestSuite.java:203) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)

    Pentaho BI Platform Tracking | 6 years ago | Calum Miller
    java.lang.NoClassDefFoundError: Could not initialize class net.sf.ehcache.CacheManager
  3. 0

    If you get the error below when running the CDA Unit Tests then stick slf4j-api-1.6.1.jar in the lib directory Also ensure that cda.properties has pt.webdetails.cda.Standalone=true [junit] Testcase: testCdaQueryComponent(pt.webdetails.cda.tests.CdaQueryComponentTest): Caused an ERROR [junit] Could not initialize class net.sf.ehcache.CacheManager [junit] java.lang.NoClassDefFoundError: Could not initialize class net.sf.ehcache.CacheManager [junit] at pt.webdetails.cda.dataaccess.AbstractDataAccess.getCache(AbstractDataAccess.java:226) [junit] at pt.webdetails.cda.dataaccess.SimpleDataAccess.queryDataSource(SimpleDataAccess.java:209) [junit] at pt.webdetails.cda.dataaccess.AbstractDataAccess.doQuery(AbstractDataAccess.java:313) [junit] at pt.webdetails.cda.CdaQueryComponent.execute(CdaQueryComponent.java:161) [junit] at pt.webdetails.cda.tests.CdaQueryComponentTest.testCdaQueryComponent(CdaQueryComponentTest.java:54) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [junit] at java.lang.reflect.Method.invoke(Method.java:597) [junit] at junit.framework.TestCase.runTest(TestCase.java:154) [junit] at junit.framework.TestCase.runBare(TestCase.java:127) [junit] at junit.framework.TestResult$1.protect(TestResult.java:106) [junit] at junit.framework.TestResult.runProtected(TestResult.java:124) [junit] at junit.framework.TestResult.run(TestResult.java:109) [junit] at junit.framework.TestCase.run(TestCase.java:118) [junit] at junit.framework.TestSuite.runTest(TestSuite.java:208) [junit] at junit.framework.TestSuite.run(TestSuite.java:203) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)

    Pentaho BI Platform Tracking | 6 years ago | Calum Miller
    java.lang.NoClassDefFoundError: Could not initialize class net.sf.ehcache.CacheManager
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    NoClassDefFoundError while creating mock object in java

    Stack Overflow | 7 months ago | Manas Kantha
    java.lang.NoClassDefFoundError: Could not initialize class
  6. 0

    External Properties file and classpath

    Oracle Community | 6 years ago | 393585
    java.lang.NoClassDefFoundError: Could not initialize class

    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. java.lang.NoClassDefFoundError

      Could not initialize class net.sf.ehcache.CacheManager

      at com.fatwire.cache.ehcache.EhCacheObjectCache._lookupCachedManager()
    2. com.fatwire.cache
      EhCacheObjectCache.start
      1. com.fatwire.cache.ehcache.EhCacheObjectCache._lookupCachedManager(EhCacheObjectCache.java:700)
      2. com.fatwire.cache.ehcache.EhCacheObjectCache._initCache(EhCacheObjectCache.java:652)
      3. com.fatwire.cache.ehcache.EhCacheObjectCache.start(EhCacheObjectCache.java:499)
      3 frames
    3. COM.FutureTense.Cache
      LinkedCacheProvider.<clinit>
      1. COM.FutureTense.Cache.LinkedCacheProvider.<init>(y:2802)
      2. COM.FutureTense.Cache.LinkedCacheProvider.<clinit>(y:2357)
      2 frames
    4. COM.FutureTense.Common
      j.<init>
      1. COM.FutureTense.Common._.<clinit>(y:2787)
      2. COM.FutureTense.Common.P.A(y:3523)
      3. COM.FutureTense.Common.P.<init>(y:807)
      4. COM.FutureTense.Common.L.<init>(y:787)
      5. COM.FutureTense.Common.j.<init>(y:818)
      5 frames
    5. COM.FutureTense.Servlet
      SContentServer.init
      1. COM.FutureTense.Servlet.SContentServer.instanceInit(y:3274)
      2. COM.FutureTense.Servlet.SContentServer.init(y:2398)
      2 frames
    6. JavaServlet
      GenericServlet.init
      1. javax.servlet.GenericServlet.init(GenericServlet.java:241)
      1 frame
    7. Atmosphere weblogic
      StubSecurityHelper$ServletInitAction.run
      1. weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
      1 frame
    8. weblogic.security.acl
      AuthenticatedSubject.doAs
      1. weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      1 frame
    9. weblogic.security.service
      SecurityManager.runAs
      1. weblogic.security.service.SecurityManager.runAs(Unknown Source)
      1 frame
    10. Atmosphere weblogic
      WebAppModule.start
      1. weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
      2. weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
      3. weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
      4. weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:521)
      5. weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1893)
      6. weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1870)
      7. weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1790)
      8. weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2999)
      9. weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1371)
      10. weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:468)
      10 frames
    11. weblogic.application.internal
      ModuleStateDriver$3.next
      1. weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
      1 frame
    12. weblogic.application.utils
      StateMachineDriver.nextState
      1. weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
      1 frame
    13. weblogic.application.internal
      ModuleStateDriver$3.next
      1. weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
      2. weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
      3. weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
      4. weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
      4 frames
    14. weblogic.application.utils
      StateMachineDriver.nextState
      1. weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
      1 frame
    15. weblogic.application.internal
      BaseDeployment$2.next
      1. weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
      2. weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
      3. weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
      3 frames
    16. weblogic.application.utils
      StateMachineDriver.nextState
      1. weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
      1 frame
    17. weblogic.application.internal
      DeploymentStateChecker.activate
      1. weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
      2. weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:16)
      3. weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:162)
      3 frames
    18. weblogic.deploy.internal
      DeploymentServiceDispatcher.commit
      1. weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
      2. weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
      3. weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:140)
      4. weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:106)
      5. weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:143)
      6. weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
      7. weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:820)
      8. weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1227)
      9. weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:436)
      10. weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
      10 frames
    19. weblogic.deploy.service
      DeploymentReceiverCallbackDeliverer$2.run
      1. weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:181)
      2. weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:12)
      3. weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:67)
      3 frames
    20. weblogic.work
      ExecuteThread.run
      1. weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
      2. weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
      3. weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
      3 frames