cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robin Wyles <...@robinwyles.com>
Subject Re: cocoon-jcr-sample
Date Fri, 16 May 2008 16:08:22 GMT
Got past this... please ignore!


On 16 May 2008, at 14:26, Robin Wyles wrote:

> 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.contextI 
> nitialized(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.executeStandaloneG 
> oal(DefaultLifecycleExecutor.java:493)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal 
> (DefaultLifecycleExecutor.java:463)
> 	at  
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHand 
> leFailures(DefaultLifecycleExecutor.java:311)
> 	at  
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegment 
> s(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.AbstractAutowireCapableBeanF 
> actory.doCreateBean(AbstractAutowireCapableBeanFactory.java:470)
> 	at  
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanF 
> actory$1.run(AbstractAutowireCapableBeanFactory.java:404)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at  
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanF 
> actory.createBean(AbstractAutowireCapableBeanFactory.java:375)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory 
> $1.getObject(AbstractBeanFactory.java:263)
> 	at  
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry 
> .getSingleton(DefaultSingletonBeanRegistry.java:170)
> 	at  
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBea 
> n(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.p 
> reInstantiateSingletons(DefaultListableBeanFactory.java:430)
> 	at  
> org.springframework.context.support.AbstractApplicationContext.finishB 
> eanFactoryInitialization(AbstractApplicationContext.java:729)
> 	at  
> org.springframework.context.support.AbstractApplicationContext.refresh 
> (AbstractApplicationContext.java:381)
> 	at  
> org.apache.cocoon.tools.rcl.springreloader.SynchronizedConfigureableWe 
> bApplicationContext.refresh 
> (SynchronizedConfigureableWebApplicationContext.java:254)
> 	at  
> org.springframework.web.context.ContextLoader.createWebApplicationCont 
> ext(ContextLoader.java:254)
> 	at  
> org.springframework.web.context.ContextLoader.initWebApplicationContex 
> t(ContextLoader.java:198)
> 	at  
> org.springframework.web.context.ContextLoaderListener.contextInitializ 
> ed(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.AbstractAutowireCapableBeanF 
> actory.convertForProperty(AbstractAutowireCapableBeanFactory.java: 
> 1253)
> 	at  
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanF 
> actory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java: 
> 1214)
> 	at  
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanF 
> actory.populateBean(AbstractAutowireCapableBeanFactory.java:978)
> 	at  
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanF 
> actory.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