Announcement Announcement Module
Collapse
No announcement yet.
Using EhCache with Spring NoClassDefFoundError Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using EhCache with Spring NoClassDefFoundError

    Hi,

    I am trying to setup object caching in our application using EhCache. I have included spring-modules-cache jar shipped as part of spring-modules-0.9. I also have ehcache-1.5.0 jar included in the spring 2.5.6 distribution. However, I am getting the error "NoClassDefFoundError: edu.emory.mathcs.backport.java.util.concurrent.Exe cutionException" when I start the WebSphere Application Server.

    Any help on which jar I need to include to get past this error will be highly appreciated. I am also including the stack trace below.

    Thanks!!

    [2/9/09 11:08:52:375 CST] 0000002f ContextLoader E org.springframework.web.context.ContextLoader initWebApplicationContext Context initialization failed
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'cacheProvider': Cannot resolve reference to bean 'cacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'cacheManager': Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: edu.emory.mathcs.backport.java.util.concurrent.Exe cutionException
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveReference(BeanDefinitio nValueResolver.java:275)
    at
    :
    :
    :
    org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:164)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveReference(BeanDefinitio nValueResolver.java:269)
    ... 75 more
    Caused by: java.lang.NoClassDefFoundError: edu.emory.mathcs.backport.java.util.concurrent.Exe cutionException
    at java.lang.J9VMInternals.verifyImpl(Native Method)
    at java.lang.J9VMInternals.verify(J9VMInternals.java: 68)
    at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:129)
    at net.sf.ehcache.config.ConfigurationHelper.createCa che(ConfigurationHelper.java:418)
    at net.sf.ehcache.config.ConfigurationHelper.createDe faultCache(ConfigurationHelper.java:334)
    at net.sf.ehcache.CacheManager.configure(CacheManager .java:306)
    at net.sf.ehcache.CacheManager.init(CacheManager.java :226)
    at net.sf.ehcache.CacheManager.<init>(CacheManager.ja va:202)
    at org.springframework.cache.ehcache.EhCacheManagerFa ctoryBean.afterPropertiesSet(EhCacheManagerFactory Bean.java:113)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:1369)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1335)
    ... 85 more
    Caused by: java.lang.ClassNotFoundException: edu.emory.mathcs.backport.java.util.concurrent.Exe cutionException
    at com.ibm.ws.classloader.CompoundClassLoader.findCla ss(CompoundClassLoader.java:580)
    at com.ibm.ws.classloader.CompoundClassLoader.loadCla ss(CompoundClassLoader.java:415)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:5 97)
    ... 96 more
Working...
X