cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rice Yeh" <rice...@gmail.com>
Subject Unable to initialize Avalon component with role org.apache.cocoon.caching.Cache
Date Sat, 16 Sep 2006 13:03:21 GMT
Hi,
  At each hot deployment on jetty, I always get the following exception and
then the whole jetty is not working anymore. Any clue?

Regards,
Rice

4583451 [Thread-5] INFO / - Error during initializing Apache Cocoon 2.2.0-M1- a
borting.
4583451 [Thread-5] INFO / - Unable to initialize Avalon component with role
org.
apache.cocoon.caching.Cache; nested exception is
org.apache.avalon.framework.par
ameters.ParameterException: Unable to lookup store:
org.apache.excalibur.store.S
tore
4583491 [Thread-5] INFO / -
org.springframework.beans.factory.BeanCreationExcept
ion: Unable to initialize Avalon component with role
org.apache.cocoon.caching.C
ache; nested exception is
org.apache.avalon.framework.parameters.ParameterExcept
ion: Unable to lookup store: org.apache.excalibur.store.Store
Caused by: org.apache.avalon.framework.parameters.ParameterException: Unable
to
lookup store: org.apache.excalibur.store.Store
        at org.apache.cocoon.caching.impl.CacheImpl.parameterize(
CacheImpl.java:
143)
        at org.apache.avalon.framework.container.ContainerUtil.parameterize
(Cont
ainerUtil.java:228)
        at
org.apache.cocoon.core.container.spring.CocoonBeanFactory$AvalonPostP
rocessor.postProcessBeforeInitialization(CocoonBeanFactory.java:201)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyBeanPostProcessorsBeforeInitialization
(AbstractAutowireCapableBeanF
actory.java:268)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:871)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:396)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:240)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:132)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:237)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:153)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:254)
        at
org.apache.cocoon.core.container.spring.CocoonBeanFactory.preInstanti
ateSingletons(CocoonBeanFactory.java:132)
        at
org.apache.cocoon.core.container.spring.BeanFactoryUtil.createBeanFac
tory(BeanFactoryUtil.java:167)
        at
org.apache.cocoon.core.container.spring.BeanFactoryUtil.createBeanFac
tory(BeanFactoryUtil.java:115)
        at
org.apache.cocoon.core.container.spring.BeanFactoryUtil.createBeanFac
tory(BeanFactoryUtil.java:79)
        at org.apache.cocoon.core.CoreUtil.setupSpringContainer(
CoreUtil.java:38
1)
        at org.apache.cocoon.core.CoreUtil.createRootContainer(CoreUtil.java
:166
)
        at
org.apache.cocoon.servlet.CocoonServletListener.contextInitialized(Co
coonServletListener.java:68)
        at org.mortbay.jetty.handler.ContextHandler.startContext
(ContextHandler.
java:368)
        at org.mortbay.jetty.webapp.WebAppContext.startContext(
WebAppContext.jav
a:957)
        at org.mortbay.jetty.handler.ContextHandler.doStart(
ContextHandler.java:
341)
        at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java
:367
)
        at org.mortbay.component.AbstractLifeCycle.start(
AbstractLifeCycle.java:
37)
        at org.mortbay.jetty.plugin.Jetty6PluginWebApplication.start
(Jetty6Plugi
nWebApplication.java:93)
        at org.mortbay.jetty.plugin.AbstractJettyRunMojo$1.changesDetected
(Abstr
actJettyRunMojo.java:259)
        at org.mortbay.jetty.plugin.util.Scanner.run(Scanner.java:160)
Caused by: org.apache.avalon.framework.service.ServiceException: Exception
durin
g lookup of component with 'org.apache.excalibur.store.Store'.
(Key='AvalonServi
ceManager')
        at
org.apache.cocoon.core.container.spring.AvalonServiceManager.lookup(A
valonServiceManager.java:58)
        at org.apache.cocoon.caching.impl.CacheImpl.parameterize(
CacheImpl.java:
141)
        ... 25 more
Caused by: org.springframework.beans.factory.BeanCreationException: Unable
to in
itialize Avalon component with role org.apache.excalibur.store.Store; nested
exc
eption is net.sf.ehcache.CacheException: Cannot parseConfiguration
CacheManager.
 Attempt to create a new instance of CacheManager using the diskStorePath
"C:\pr
ojects\XS\school\xs-school-cocoon\target\jetty-tmp\cache-dir\" which is
already
used by an existing CacheManager. The source of the configuration was URL of
jar
:file:/C:/Documents%20and%20Settings/USER/.m2/repository/org/apache/cocoon/cocoo
n-core/2.2.0-M1/cocoon-
core-2.2.0-M1.jar!/org/apache/cocoon/components/store/imp
l/ehcache.xml.
        at
org.apache.cocoon.core.container.spring.CocoonBeanFactory$AvalonPostP
rocessor.postProcessBeforeInitialization(CocoonBeanFactory.java:206)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyBeanPostProcessorsBeforeInitialization
(AbstractAutowireCapableBeanF
actory.java:268)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:871)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:396)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:240)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:132)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:237)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:153)
        at
org.apache.cocoon.core.container.spring.AvalonServiceManager.lookup(A
valonServiceManager.java:56)
        ... 26 more
Caused by: net.sf.ehcache.CacheException: Cannot parseConfiguration
CacheManager
. Attempt to create a new instance of CacheManager using the diskStorePath
"C:\p
rojects\XS\school\xs-school-cocoon\target\jetty-tmp\cache-dir\" which is
already
 used by an existing CacheManager. The source of the configuration was URL
of ja
r:file:/C:/Documents%20and%20Settings/USER/.m2/repository/org/apache/cocoon/coco
on-core/2.2.0-M1/cocoon-
core-2.2.0-M1.jar!/org/apache/cocoon/components/store/im
pl/ehcache.xml.
        at net.sf.ehcache.CacheManager.configure(CacheManager.java:248)
        at net.sf.ehcache.CacheManager.init(CacheManager.java:193)
        at net.sf.ehcache.CacheManager.<init>(CacheManager.java:155)
        at net.sf.ehcache.CacheManager.create(CacheManager.java:356)
        at org.apache.cocoon.components.store.impl.EHDefaultStore.initialize
(EHD
efaultStore.java:273)
        at org.apache.avalon.framework.container.ContainerUtil.initialize
(Contai
nerUtil.java:244)
        at
org.apache.cocoon.core.container.spring.CocoonBeanFactory$AvalonPostP
rocessor.postProcessBeforeInitialization(CocoonBeanFactory.java:204)
        ... 34 more

4583491 [Thread-5] WARN org.mortbay.log - failed ContextHandler@1675463{
/,file:/
C:/projects/XS/school/xs-school-cocoon/target/xs-school-cocoon/}
[ERROR] Error reconfiguring/restarting webapp after change in watched files
java.lang.RuntimeException:
org.springframework.beans.factory.BeanCreationExcept
ion: Unable to initialize Avalon component with role
org.apache.cocoon.caching.C
ache; nested exception is
org.apache.avalon.framework.parameters.ParameterExcept
ion: Unable to lookup store: org.apache.excalibur.store.Store
        at
org.apache.cocoon.servlet.CocoonServletListener.contextInitialized(Co
coonServletListener.java:73)
        at org.mortbay.jetty.handler.ContextHandler.startContext
(ContextHandler.
java:368)
        at org.mortbay.jetty.webapp.WebAppContext.startContext(
WebAppContext.jav
a:957)
        at org.mortbay.jetty.handler.ContextHandler.doStart(
ContextHandler.java:
341)
        at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java
:367
)
        at org.mortbay.component.AbstractLifeCycle.start(
AbstractLifeCycle.java:
37)
        at org.mortbay.jetty.plugin.Jetty6PluginWebApplication.start
(Jetty6Plugi
nWebApplication.java:93)
        at org.mortbay.jetty.plugin.AbstractJettyRunMojo$1.changesDetected
(Abstr
actJettyRunMojo.java:259)
        at org.mortbay.jetty.plugin.util.Scanner.run(Scanner.java:160)
Caused by: org.springframework.beans.factory.BeanCreationException: Unable
to in
itialize Avalon component with role org.apache.cocoon.caching.Cache; nested
exce
ption is org.apache.avalon.framework.parameters.ParameterException: Unable
to lo
okup store: org.apache.excalibur.store.Store
        at
org.apache.cocoon.core.container.spring.CocoonBeanFactory$AvalonPostP
rocessor.postProcessBeforeInitialization(CocoonBeanFactory.java:206)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyBeanPostProcessorsBeforeInitialization
(AbstractAutowireCapableBeanF
actory.java:268)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:871)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:396)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:240)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:132)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:237)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:153)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:254)
        at
org.apache.cocoon.core.container.spring.CocoonBeanFactory.preInstanti
ateSingletons(CocoonBeanFactory.java:132)
        at
org.apache.cocoon.core.container.spring.BeanFactoryUtil.createBeanFac
tory(BeanFactoryUtil.java:167)
        at
org.apache.cocoon.core.container.spring.BeanFactoryUtil.createBeanFac
tory(BeanFactoryUtil.java:115)
        at
org.apache.cocoon.core.container.spring.BeanFactoryUtil.createBeanFac
tory(BeanFactoryUtil.java:79)
        at org.apache.cocoon.core.CoreUtil.setupSpringContainer(
CoreUtil.java:38
1)
        at org.apache.cocoon.core.CoreUtil.createRootContainer(CoreUtil.java
:166
)
        at
org.apache.cocoon.servlet.CocoonServletListener.contextInitialized(Co
coonServletListener.java:68)
        ... 8 more
Caused by: org.apache.avalon.framework.parameters.ParameterException: Unable
to
lookup store: org.apache.excalibur.store.Store
        at org.apache.cocoon.caching.impl.CacheImpl.parameterize(
CacheImpl.java:
143)
        at org.apache.avalon.framework.container.ContainerUtil.parameterize
(Cont
ainerUtil.java:228)
        at
org.apache.cocoon.core.container.spring.CocoonBeanFactory$AvalonPostP
rocessor.postProcessBeforeInitialization(CocoonBeanFactory.java:201)
        ... 23 more
Caused by: org.apache.avalon.framework.service.ServiceException: Exception
durin
g lookup of component with 'org.apache.excalibur.store.Store'.
(Key='AvalonServi
ceManager')
        at
org.apache.cocoon.core.container.spring.AvalonServiceManager.lookup(A
valonServiceManager.java:58)
        at org.apache.cocoon.caching.impl.CacheImpl.parameterize(
CacheImpl.java:
141)
        ... 25 more
Caused by: org.springframework.beans.factory.BeanCreationException: Unable
to in
itialize Avalon component with role org.apache.excalibur.store.Store; nested
exc
eption is net.sf.ehcache.CacheException: Cannot parseConfiguration
CacheManager.
 Attempt to create a new instance of CacheManager using the diskStorePath
"C:\pr
ojects\XS\school\xs-school-cocoon\target\jetty-tmp\cache-dir\" which is
already
used by an existing CacheManager. The source of the configuration was URL of
jar
:file:/C:/Documents%20and%20Settings/USER/.m2/repository/org/apache/cocoon/cocoo
n-core/2.2.0-M1/cocoon-
core-2.2.0-M1.jar!/org/apache/cocoon/components/store/imp
l/ehcache.xml.
        at
org.apache.cocoon.core.container.spring.CocoonBeanFactory$AvalonPostP
rocessor.postProcessBeforeInitialization(CocoonBeanFactory.java:206)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyBeanPostProcessorsBeforeInitialization
(AbstractAutowireCapableBeanF
actory.java:268)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:871)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:396)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:240)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:132)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:237)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:153)
        at
org.apache.cocoon.core.container.spring.AvalonServiceManager.lookup(A
valonServiceManager.java:56)
        ... 26 more
Caused by: net.sf.ehcache.CacheException: Cannot parseConfiguration
CacheManager
. Attempt to create a new instance of CacheManager using the diskStorePath
"C:\p
rojects\XS\school\xs-school-cocoon\target\jetty-tmp\cache-dir\" which is
already
 used by an existing CacheManager. The source of the configuration was URL
of ja
r:file:/C:/Documents%20and%20Settings/USER/.m2/repository/org/apache/cocoon/coco
on-core/2.2.0-M1/cocoon-
core-2.2.0-M1.jar!/org/apache/cocoon/components/store/im
pl/ehcache.xml.
        at net.sf.ehcache.CacheManager.configure(CacheManager.java:248)
        at net.sf.ehcache.CacheManager.init(CacheManager.java:193)
        at net.sf.ehcache.CacheManager.<init>(CacheManager.java:155)
        at net.sf.ehcache.CacheManager.create(CacheManager.java:356)
        at org.apache.cocoon.components.store.impl.EHDefaultStore.initialize
(EHD
efaultStore.java:273)
        at org.apache.avalon.framework.container.ContainerUtil.initialize
(Contai
nerUtil.java:244)
        at
org.apache.cocoon.core.container.spring.CocoonBeanFactory$AvalonPostP
rocessor.postProcessBeforeInitialization(CocoonBeanFactory.java:204)
        ... 34 more
[INFO] Listeners completed.
[INFO] Scanning ...
[INFO] Scan complete at Sat Sep 16 20:56:15 CST 2006

Mime
View raw message