cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "roy huang" <lingererhu...@hotmail.com>
Subject [Help]Errors while cocoon 2.1.6 startup in tomcat 4 with ehcache.
Date Mon, 06 Dec 2004 06:26:29 GMT
Hi,all:
    I use tomcat as my servlet server,after several times restart,console always throw errors
like:

- IOException reading index. Creating new index.
- cocoon-ehcache-1Cache: Could not create disk store
java.io.IOException: Index file D:\jakarta-tomcat-4-wsad\work\Standalone\localhost\PowerOA\cocoon-files\cache-dir\cocoon-ehcache-1.index
could not created.
 at net.sf.ehcache.store.DiskStore.createNewIndexFile(DiskStore.java:620)
 at net.sf.ehcache.store.DiskStore.readIndex(DiskStore.java:605)
 at net.sf.ehcache.store.DiskStore.iniatialiseFiles(DiskStore.java:188)
 at net.sf.ehcache.store.DiskStore.<init>(DiskStore.java:151)
 at net.sf.ehcache.Cache.initialise(Cache.java:269)
 at net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:333)
 at net.sf.ehcache.CacheManager.addCache(CacheManager.java:325)
 at org.apache.cocoon.components.store.impl.EHDefaultStore.initialize(EHDefaultStore.java:215)
 at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:283)
 at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:277)
 at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:108)
 at org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:522)
 at org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:541)
 at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:283)
 at org.apache.cocoon.Cocoon.initialize(Cocoon.java:280)
 at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:283)
 at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1382)
 at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:480)
 at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:888)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:776)
 at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3363)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:3586)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:707)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)
 at org.apache.catalina.core.StandardService.start(StandardService.java:450)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
- RAMJobStore initialized.
And then any request will throw an exception:
net.sf.ehcache.CacheException: cocoon-ehcache-1 Cache: The Disk store is not active.


  It looks like the index file cocoon-ehcache-1.index can't be delete or read.After delete
all these file,it works fine,but this will happen again after several times restart.If I disable
disk cache in cococon.xconf like:
  <store logger="core.store">
    <parameter name="maxobjects" value="1000"/>
    <parameter name="use-cache-directory" value="false"/>
  </store>
This will also happen but in cocoon-files directory.

Any suggestion?

Roy Huang
Mime
View raw message