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

  • Using EhCache with Spring NoClassDefFoundError


    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: 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.


    [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: cutionException
    at nitionValueResolver.resolveReference(BeanDefinitio
    : BeanFactory.getBean(
    at nitionValueResolver.resolveReference(BeanDefinitio
    ... 75 more
    Caused by: java.lang.NoClassDefFoundError: cutionException
    at java.lang.J9VMInternals.verifyImpl(Native Method)
    at java.lang.J9VMInternals.verify( 68)
    at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:129)
    at net.sf.ehcache.config.ConfigurationHelper.createCa che(
    at net.sf.ehcache.config.ConfigurationHelper.createDe faultCache(
    at net.sf.ehcache.CacheManager.configure(CacheManager .java:306)
    at net.sf.ehcache.CacheManager.init( :226)
    at net.sf.ehcache.CacheManager.<init>(CacheManager.ja va:202)
    at org.springframework.cache.ehcache.EhCacheManagerFa ctoryBean.afterPropertiesSet(EhCacheManagerFactory
    at AutowireCapableBeanFactory.invokeInitMethods(Abstr
    at AutowireCapableBeanFactory.initializeBean(Abstract
    ... 85 more
    Caused by: java.lang.ClassNotFoundException: cutionException
    at ss(
    at ss(
    at java.lang.ClassLoader.loadClass( 97)
    ... 96 more