reset password
Author Message
jgreen
Posts: 23
Posted 13:40 Dec 02, 2009 |

Hello,

After everything running fine for a while all of a sudden I am getting this cache error.  I have tried the advice from a previous post about deleting csns from the server, deleting csns~.xml files, refreshing and cleaning and nothing helps.

I have also tried deleting the folder that eclipse makes for csns down under wtpwebapps, but it did nothing for this problem.

any suggestions?

2009-12-02 13:26:26,897  WARN ReadWriteCache: could not destroy cache
org.hibernate.cache.CacheException: java.lang.IllegalStateException: The CacheManager is not alive.
    at org.hibernate.cache.EhCache.destroy(EhCache.java:184)
    at org.hibernate.cache.ReadWriteCache.destroy(ReadWriteCache.java:232)
    at org.hibernate.impl.SessionFactoryImpl.close(SessionFactoryImpl.java:785)
    at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.destroy(AbstractSessionFactoryBean.java:251)
    at org.springframework.orm.hibernate3.LocalSessionFactoryBean.destroy(LocalSessionFactoryBean.java:865)
    at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:151)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:453)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:431)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:404)
    at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:854)
    at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:832)
    at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:795)
    at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:361)
    at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:70)
    at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3973)
    at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4577)
    at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
    at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
    at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
    at org.apache.catalina.core.StandardService.stop(StandardService.java:584)
    at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
    at org.apache.catalina.startup.Catalina.stop(Catalina.java:633)
    at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:676)
Caused by: java.lang.IllegalStateException: The CacheManager is not alive.
    at net.sf.ehcache.CacheManager.checkStatus(CacheManager.java:730)
    at net.sf.ehcache.CacheManager.removeCache(CacheManager.java:657)
    at org.hibernate.cache.EhCache.destroy(EhCache.java:181)
    ... 22 more
2009-12-02 13:26:26,898  WARN CacheManager: CacheManager already shutdown

 

cysun
Posts: 2935
Posted 20:09 Dec 02, 2009 |

1. Remove csns in the Servers view.

2. Exit Eclipse.

3. Remove the csns webapp work diretory if it still exists. It should be under workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps .

4. Start Eclipse and try running the project again.