cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robin Wyles <...@robinwyles.com>
Subject cocoon-jcr-sample
Date Fri, 16 May 2008 13:26:44 GMT
Hi devs,

I'm trying to get the cocoon-jcr-sample block working, after first  
creating the missing rcl.properties file I do mvn cocoon:prepare  
jetty:run and I get the following stacktrace:

java.lang.RuntimeException: Cannot invoke listener  
org.springframework.web.context.ContextLoaderListener@1a8fd8
	at  
org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingListener.invoke 
(ReloadingListener.java:190)
	at  
org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingListener.contextIni 
tialized(ReloadingListener.java:213)
	at org.mortbay.jetty.handler.ContextHandler.startContext 
(ContextHandler.java:540)
	at org.mortbay.jetty.servlet.Context.startContext(Context.java:135)
	at org.mortbay.jetty.webapp.WebAppContext.startContext 
(WebAppContext.java:1220)
	at org.mortbay.jetty.handler.ContextHandler.doStart 
(ContextHandler.java:510)
	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java: 
448)
	at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart 
(Jetty6PluginWebAppContext.java:110)
	at org.mortbay.component.AbstractLifeCycle.start 
(AbstractLifeCycle.java:40)
	at org.mortbay.jetty.handler.HandlerCollection.doStart 
(HandlerCollection.java:152)
	at org.mortbay.jetty.handler.ContextHandlerCollection.doStart 
(ContextHandlerCollection.java:156)
	at org.mortbay.component.AbstractLifeCycle.start 
(AbstractLifeCycle.java:40)
	at org.mortbay.jetty.handler.HandlerCollection.doStart 
(HandlerCollection.java:152)
	at org.mortbay.component.AbstractLifeCycle.start 
(AbstractLifeCycle.java:40)
	at org.mortbay.jetty.handler.HandlerWrapper.doStart 
(HandlerWrapper.java:117)
	at org.mortbay.jetty.Server.doStart(Server.java:222)
	at org.mortbay.component.AbstractLifeCycle.start 
(AbstractLifeCycle.java:40)
	at org.mortbay.jetty.plugin.Jetty6PluginServer.start 
(Jetty6PluginServer.java:132)
	at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty 
(AbstractJettyMojo.java:357)
	at org.mortbay.jetty.plugin.AbstractJettyMojo.execute 
(AbstractJettyMojo.java:293)
	at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute 
(AbstractJettyRunMojo.java:203)
	at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java: 
182)
	at org.apache.maven.plugin.DefaultPluginManager.executeMojo 
(DefaultPluginManager.java:443)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals 
(DefaultLifecycleExecutor.java:539)
	at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa 
l(DefaultLifecycleExecutor.java:493)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal 
(DefaultLifecycleExecutor.java:463)
	at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle 
Failures(DefaultLifecycleExecutor.java:311)
	at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( 
DefaultLifecycleExecutor.java:278)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute 
(DefaultLifecycleExecutor.java:143)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
	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:585)
	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java: 
430)
	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.springframework.beans.factory.BeanCreationException:  
Error creating bean with name 'org.apache.cocoon.jcr.sample.servlet'  
defined in URL [file:/Users/robinwyles/Work/cocoon-trunk/blocks/ 
cocoon-jcr/cocoon-jcr-sample/target/classes/META-INF/cocoon/spring/ 
cocoon-jcr-sample-blockServlet.xml]: Initialization of bean failed;  
nested exception is  
org.springframework.beans.InvalidPropertyException: Invalid property  
'contextPath' of bean class  
[org.apache.cocoon.sitemap.SitemapServlet]: No property 'contextPath'  
found
	at  
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac 
tory.doCreateBean(AbstractAutowireCapableBeanFactory.java:470)
	at  
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac 
tory$1.run(AbstractAutowireCapableBeanFactory.java:404)
	at java.security.AccessController.doPrivileged(Native Method)
	at  
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac 
tory.createBean(AbstractAutowireCapableBeanFactory.java:375)
	at org.springframework.beans.factory.support.AbstractBeanFactory 
$1.getObject(AbstractBeanFactory.java:263)
	at  
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g 
etSingleton(DefaultSingletonBeanRegistry.java:170)
	at  
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean( 
AbstractBeanFactory.java:260)
	at  
org.springframework.beans.factory.support.AbstractBeanFactory.getBean 
(AbstractBeanFactory.java:184)
	at  
org.springframework.beans.factory.support.AbstractBeanFactory.getBean 
(AbstractBeanFactory.java:163)
	at  
org.springframework.beans.factory.support.DefaultListableBeanFactory.pre 
InstantiateSingletons(DefaultListableBeanFactory.java:430)
	at  
org.springframework.context.support.AbstractApplicationContext.finishBea 
nFactoryInitialization(AbstractApplicationContext.java:729)
	at  
org.springframework.context.support.AbstractApplicationContext.refresh 
(AbstractApplicationContext.java:381)
	at  
org.apache.cocoon.tools.rcl.springreloader.SynchronizedConfigureableWebA 
pplicationContext.refresh 
(SynchronizedConfigureableWebApplicationContext.java:254)
	at  
org.springframework.web.context.ContextLoader.createWebApplicationContex 
t(ContextLoader.java:254)
	at  
org.springframework.web.context.ContextLoader.initWebApplicationContext( 
ContextLoader.java:198)
	at  
org.springframework.web.context.ContextLoaderListener.contextInitialized 
(ContextLoaderListener.java:45)
	at  
org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingListener.invoke 
(ReloadingListener.java:157)
	... 39 more
Caused by: org.springframework.beans.InvalidPropertyException:  
Invalid property 'contextPath' of bean class  
[org.apache.cocoon.sitemap.SitemapServlet]: No property 'contextPath'  
found
	at org.springframework.beans.BeanWrapperImpl.convertForProperty 
(BeanWrapperImpl.java:382)
	at  
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac 
tory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1253)
	at  
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac 
tory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1214)
	at  
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac 
tory.populateBean(AbstractAutowireCapableBeanFactory.java:978)
	at  
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac 
tory.doCreateBean(AbstractAutowireCapableBeanFactory.java:462)
	... 55 more

.... So I'm confused - I've compared cocoon-jcr-sample- 
blockServlet.xml with a working blockServlet.xml and can't see any  
misconfiguration. Does anyone have any ideas?

Cheers,

Robin




Mime
View raw message