cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira ...@odoko.co.uk>
Subject Re: Cache Manager configuration
Date Wed, 22 Jun 2005 20:58:29 GMT
Sylvain KLAM wrote:
> Hello,
> 
> I have installed Cocoon 2.1.7 under WSAD as a web application and when I want 
> to go to index.html page, 
> (http://localhost:9080/wfcCocoon217/) I have the following stacktrace :

A guess. Check whether WSAD ships ehcache. If it does, ensure you only 
have one version available. I've seen clashes before because of multiple 
  ehcache jars.

Regards, Upayavira

> Initialization Problem
> 
> Message: Cannot configure CacheManager: null
> 
> Description: net.sf.ehcache.CacheException: Cannot configure CacheManager: null
> 
> Sender: org.apache.cocoon.servlet.CocoonServlet
> 
> Source: Cocoon Servlet
> 
> request-uri
> 
> /wfcCocoon217/
> 
> full exception chain stacktrace
> 
> net.sf.ehcache.CacheException: Cannot configure CacheManager: null
> 	at net.sf.ehcache.CacheManager.configure(CacheManager.java:170)
> 	at net.sf.ehcache.CacheManager.<init>(CacheManager.java:124)
> 	at net.sf.ehcache.CacheManager.create(CacheManager.java:248)
> 	at org.apache.cocoon.components.store.impl.EHDefaultStore.initialize
> (EHDefaultStore.java:213)
> 	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:561)
> 	at org.apache.avalon.framework.container.ContainerUtil.initialize
> (ContainerUtil.java:283)
> 	at org.apache.cocoon.Cocoon.initialize(Cocoon.java:282)
> 	at org.apache.avalon.framework.container.ContainerUtil.initialize
> (ContainerUtil.java:283)
> 	at org.apache.cocoon.servlet.CocoonServlet.createCocoon
> (CocoonServlet.java:1391)
> 	at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:481)
> 	at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit
> (StrictServletInstance.java:82)
> 	at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init
> (StrictLifecycleServlet.java:147)
> 	at com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init
> (StrictLifecycleServlet.java:270)
> 	at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init
> (StrictLifecycleServlet.java:113)
> 	at com.ibm.ws.webcontainer.servlet.ServletInstance.init
> (ServletInstance.java:175)
> 	at javax.servlet.GenericServlet.init(GenericServlet.java:258)
> 	at com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet
> (WebAppServletManager.java:761)
> 	at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet
> (WebAppServletManager.java:257)
> 	at 
> com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets
> (WebAppServletManager.java:453)
> 	at com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager
> (WebApp.java:1233)
> 	at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:273)
> 	at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:317)
> 	at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:194)
> 	at com.ibm.ws.webcontainer.WebContainer.addWebApplication
> (WebContainer.java:950)
> 	at com.ibm.ws.runtime.component.WebContainerImpl.install
> (WebContainerImpl.java:133)
> 	at com.ibm.ws.runtime.component.WebContainerImpl.start
> (WebContainerImpl.java:360)
> 	at com.ibm.ws.runtime.component.ApplicationMgrImpl.start
> (ApplicationMgrImpl.java:401)
> 	at 
> com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart
> (DeployedApplicationImpl.java:743)
> 	at com.ibm.ws.runtime.component.DeployedModuleImpl.start
> (DeployedModuleImpl.java:337)
> 	at com.ibm.ws.runtime.component.DeployedApplicationImpl.start
> (DeployedApplicationImpl.java:531)
> 	at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication
> (ApplicationMgrImpl.java:254)
> 	at com.ibm.ws.runtime.component.ApplicationMgrImpl.start
> (ApplicationMgrImpl.java:232)
> 	at com.ibm.ws.runtime.component.ContainerImpl.startComponents
> (ContainerImpl.java:343)
> 	at com.ibm.ws.runtime.component.ContainerImpl.start
> (ContainerImpl.java:234)
> 	at com.ibm.ws.runtime.component.ApplicationServerImpl.start
> (ApplicationServerImpl.java:117)
> 	at com.ibm.ws.runtime.component.ContainerImpl.startComponents
> (ContainerImpl.java:343)
> 	at com.ibm.ws.runtime.component.ContainerImpl.start
> (ContainerImpl.java:234)
> 	at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:182)
> 	at com.ibm.ws.runtime.WsServer.start(WsServer.java:135)
> 	at com.ibm.ws.runtime.WsServer.main(WsServer.java:232)
> 	at java.lang.reflect.Method.invoke(Native Method)
> 	at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
> 	at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run
> (ServerRunnerV5.java:97)
> 
> 
> stacktrace
> 
> net.sf.ehcache.CacheException: Cannot configure CacheManager: null
> 	at net.sf.ehcache.CacheManager.configure(CacheManager.java:170)
> 	at net.sf.ehcache.CacheManager.<init>(CacheManager.java:124)
> 	at net.sf.ehcache.CacheManager.create(CacheManager.java:248)
> 	at org.apache.cocoon.components.store.impl.EHDefaultStore.initialize
> (EHDefaultStore.java:213)
> 	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:561)
> 	at org.apache.avalon.framework.container.ContainerUtil.initialize
> (ContainerUtil.java:283)
> 	at org.apache.cocoon.Cocoon.initialize(Cocoon.java:282)
> 	at org.apache.avalon.framework.container.ContainerUtil.initialize
> (ContainerUtil.java:283)
> 	at org.apache.cocoon.servlet.CocoonServlet.createCocoon
> (CocoonServlet.java:1391)
> 	at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:481)
> 	at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit
> (StrictServletInstance.java:82)
> 	at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init
> (StrictLifecycleServlet.java:147)
> 	at com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init
> (StrictLifecycleServlet.java:270)
> 	at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init
> (StrictLifecycleServlet.java:113)
> 	at com.ibm.ws.webcontainer.servlet.ServletInstance.init
> (ServletInstance.java:175)
> 	at javax.servlet.GenericServlet.init(GenericServlet.java:258)
> 	at com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet
> (WebAppServletManager.java:761)
> 	at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet
> (WebAppServletManager.java:257)
> 	at 
> com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets
> (WebAppServletManager.java:453)
> 	at com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager
> (WebApp.java:1233)
> 	at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:273)
> 	at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:317)
> 	at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:194)
> 	at com.ibm.ws.webcontainer.WebContainer.addWebApplication
> (WebContainer.java:950)
> 	at com.ibm.ws.runtime.component.WebContainerImpl.install
> (WebContainerImpl.java:133)
> 	at com.ibm.ws.runtime.component.WebContainerImpl.start
> (WebContainerImpl.java:360)
> 	at com.ibm.ws.runtime.component.ApplicationMgrImpl.start
> (ApplicationMgrImpl.java:401)
> 	at 
> com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart
> (DeployedApplicationImpl.java:743)
> 	at com.ibm.ws.runtime.component.DeployedModuleImpl.start
> (DeployedModuleImpl.java:337)
> 	at com.ibm.ws.runtime.component.DeployedApplicationImpl.start
> (DeployedApplicationImpl.java:531)
> 	at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication
> (ApplicationMgrImpl.java:254)
> 	at com.ibm.ws.runtime.component.ApplicationMgrImpl.start
> (ApplicationMgrImpl.java:232)
> 	at com.ibm.ws.runtime.component.ContainerImpl.startComponents
> (ContainerImpl.java:343)
> 	at com.ibm.ws.runtime.component.ContainerImpl.start
> (ContainerImpl.java:234)
> 	at com.ibm.ws.runtime.component.ApplicationServerImpl.start
> (ApplicationServerImpl.java:117)
> 	at com.ibm.ws.runtime.component.ContainerImpl.startComponents
> (ContainerImpl.java:343)
> 	at com.ibm.ws.runtime.component.ContainerImpl.start
> (ContainerImpl.java:234)
> 	at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:182)
> 	at com.ibm.ws.runtime.WsServer.start(WsServer.java:135)
> 	at com.ibm.ws.runtime.WsServer.main(WsServer.java:232)
> 	at java.lang.reflect.Method.invoke(Native Method)
> 	at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
> 	at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run
> (ServerRunnerV5.java:97)
> 
> 
> cause
> 
> net.sf.ehcache.CacheException: Cannot configure CacheManager: null
> 
> I have well defined the pipeline in sitemap.xmap and in the ehcache jar, 
> ehcache-failsafe.xml is present.
> 
> I created ehcache.xml in the following directories : 
> - Web Content/WEB-INF
> - Web Content/WEB-INF/lib
> - src/config
> 
> and Cocoon doesnt find the file to configure the Cache Manager.
> 
> Any ideas ?
> 
> Thanks 
> 
> Best regards,
> 
> Sylvain KLAM
> sklam@spiderbusiness.com
> 
> 


Mime
View raw message