ERROR
-
DisposableBeanAdapter.destroy(
149
)
|
Couldn't invoke destroy method of bean
with
name 'org.springframework.cache.ehcache.EhCacheManagerFactoryBean#12c7568'
java.lang.IllegalStateException: The userCache Cache is not alive.
at net.sf.ehcache.Cache.checkStatus(Cache.java:
1201
)
at net.sf.ehcache.Cache.dispose(Cache.java:
1081
)
at net.sf.ehcache.CacheManager.shutdown(CacheManager.java:
702
)
at org.springframework.cache.ehcache.EhCacheManagerFactoryBean.destroy(EhCacheManagerFactoryBean.java:
127
)
at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:
146
)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:
379
)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:
352
)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:
325
)
at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:
799
)
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:
777
)
at org.springframework.context.support.AbstractApplicationContext$
1
.run(AbstractApplicationContext.java:
714
)
添加shared
<bean id="userCache" class="org.acegisecurity.providers.dao.cache.EhCacheBasedUserCache">
<property name="cache">
<bean class="org.springframework.cache.ehcache.EhCacheFactoryBean">
<property name="cacheManager">
<bean class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
<!-- 添加shared -->
<property name="shared" value="true"/>
</bean>
</property>
<property name="cacheName" value="userCache"></property>
</bean>
</property>
</bean>
posted on 2007-09-21 10:35
forker 阅读(1302)
评论(0) 编辑 收藏 所属分类:
java