隨筆-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 閱讀(1319) 評論(0)  編輯  收藏 所屬分類: java
          <2007年9月>
          2627282930311
          2345678
          9101112131415
          16171819202122
          23242526272829
          30123456

          常用鏈接

          留言簿(1)

          隨筆分類

          隨筆檔案

          Links

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 荣昌县| 延寿县| 北辰区| 定边县| 无棣县| 梅州市| 沾化县| 商南县| 娄烦县| 汨罗市| 神农架林区| 巩义市| 常宁市| 阳西县| 古丈县| 广东省| 平昌县| 册亨县| 清水河县| 灯塔市| 旅游| 富蕴县| 孟津县| 武夷山市| 浠水县| 兖州市| 潮州市| 土默特左旗| 临湘市| 宝清县| 贡嘎县| 溧阳市| 洛南县| 抚顺市| 博湖县| 佛学| 兴城市| 合江县| 丘北县| 雷波县| 江达县|