隨筆-16  評論-9  文章-0  trackbacks-0
          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 閱讀(1323) 評論(0)  編輯  收藏 所屬分類: java
          主站蜘蛛池模板: 贵州省| 惠州市| 东丽区| 大埔县| 金溪县| 正定县| 天长市| 望奎县| 康定县| 高安市| 南漳县| 牙克石市| 库车县| 弋阳县| 漳浦县| 县级市| 花莲县| 灵丘县| 沂水县| 沅江市| 武冈市| 夹江县| 南川市| 太仓市| 库车县| 齐河县| 兰坪| 赞皇县| 新郑市| 康马县| 庆云县| 丘北县| 中山市| 洪泽县| 泉州市| 巴中市| 南和县| 广德县| 曲麻莱县| 武威市| 杭锦后旗|