cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <thorsten.scherler....@juntadeandalucia.es>
Subject Building blocks with cocoon3
Date Thu, 10 Dec 2009 10:49:27 GMT
Hi all,

I am trying to develop a new cocoon3 block but I get an error when
starting jetty.

To get started with developing cocoon-blocks in cocoon3 I did:
1) svn co https://svn.apache.org/repos/asf/cocoon/cocoon3/trunk cocoon3
2) mvn clean install
3) cd cocoon-archetype-block
4) mvn clean install
5) cd /the/path/of/your/webapp
6) mvn archetype:create \
-DarchetypeGroupId=org.apache.cocoon.archetype-block \
-DarchetypeArtifactId=cocoon-archetype-block \
-DarchetypeVersion=3.0.0-alpha-2-SNAPSHOT \
-DgroupId=org.yourOrganisation \
-DartifactId=your-component
7) cd your-component
8) mvn clean install jetty:run

However I get the following:
java.lang.RuntimeException: Cannot invoke listener
org.springframework.web.context.ContextLoaderListener@17d51a6
	at
org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingListener.invoke(ReloadingListener.java:190)
	at
org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingListener.contextInitialized(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:490)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
	at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
	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:597)
	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.springframework.beans.factory.config.CustomScopeConfigurer#0'
defined in URL
[jar:file:/home/thorsten/.m2/repository/org/apache/cocoon/cocoon-servlet-service-impl/1.2.0/cocoon-servlet-service-impl-1.2.0.jar!/META-INF/cocoon/spring/cocoon-ssf-callstack.xml]:
Cannot create inner bean 'org.apache.cocoon.servletscope.ServletScope#1715510' of type [org.apache.cocoon.servletscope.ServletScope]
while setting bean property 'scopes' with key [TypedStringValue: value [servlet], target type
[null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'org.apache.cocoon.servletscope.ServletScope#1715510' defined in URL
[jar:file:/home/thorsten/.m2/repository/org/apache/cocoon/cocoon-servlet-service-impl/1.2.0/cocoon-servlet-service-impl-1.2.0.jar!/META-INF/cocoon/spring/cocoon-ssf-callstack.xml]:
Cannot resolve reference to bean 'javax.servlet.ServletContext/callstack' while setting bean
property 'servletContext'; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'javax.servlet.ServletContext/callstack' defined in BeanDefinition
defined in URL [jar:file:/home/thorsten/.m2/repository/org/apache/cocoon/cocoon-servlet-service-impl/1.2.0/cocoon-servlet-service-impl-1.2.0.jar!/META-INF/cocoon/spring/cocoon-ssf-callstack.xml]:
Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.util.ReflectionUtils.isEqualsMethod(Ljava/lang/reflect/Method;)Z
	at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230)
	at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:117)
	at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedMap(BeanDefinitionValueResolver.java:320)
	at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:134)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
	at java.security.AccessController.doPrivileged(Native Method)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
	at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:264)
	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
	at
org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:880)
	at
org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:533)
	at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:362)
	at
org.apache.cocoon.tools.rcl.springreloader.SynchronizedConfigureableWebApplicationContext.refresh(SynchronizedConfigureableWebApplicationContext.java:254)
	at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
	at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
	at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
	at
org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingListener.invoke(ReloadingListener.java:157)
	... 40 more
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name
'org.apache.cocoon.servletscope.ServletScope#1715510' defined in URL
[jar:file:/home/thorsten/.m2/repository/org/apache/cocoon/cocoon-servlet-service-impl/1.2.0/cocoon-servlet-service-impl-1.2.0.jar!/META-INF/cocoon/spring/cocoon-ssf-callstack.xml]:
Cannot resolve reference to bean 'javax.servlet.ServletContext/callstack' while setting bean
property 'servletContext'; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'javax.servlet.ServletContext/callstack' defined in BeanDefinition
defined in URL [jar:file:/home/thorsten/.m2/repository/org/apache/cocoon/cocoon-servlet-service-impl/1.2.0/cocoon-servlet-service-impl-1.2.0.jar!/META-INF/cocoon/spring/cocoon-ssf-callstack.xml]:
Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.util.ReflectionUtils.isEqualsMethod(Ljava/lang/reflect/Method;)Z
	at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
	at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
	at java.security.AccessController.doPrivileged(Native Method)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
	at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219)
	... 62 more
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'javax.servlet.ServletContext/callstack'
defined in BeanDefinition defined in URL
[jar:file:/home/thorsten/.m2/repository/org/apache/cocoon/cocoon-servlet-service-impl/1.2.0/cocoon-servlet-service-impl-1.2.0.jar!/META-INF/cocoon/spring/cocoon-ssf-callstack.xml]:
Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.util.ReflectionUtils.isEqualsMethod(Ljava/lang/reflect/Method;)Z
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
	at java.security.AccessController.doPrivileged(Native Method)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
	at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:264)
	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
	at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
	... 70 more
Caused by: java.lang.NoSuchMethodError:
org.springframework.util.ReflectionUtils.isEqualsMethod(Ljava/lang/reflect/Method;)Z
	at
org.springframework.aop.support.AopUtils.isEqualsMethod(AopUtils.java:118)
	at
org.springframework.aop.framework.JdkDynamicAopProxy.findDefinedEqualsAndHashCodeMethods(JdkDynamicAopProxy.java:131)
	at
org.springframework.aop.framework.JdkDynamicAopProxy.getProxy(JdkDynamicAopProxy.java:116)
	at
org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:110)
	at
org.springframework.aop.scope.ScopedProxyFactoryBean.setBeanFactory(ScopedProxyFactoryBean.java:109)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1325)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
	... 79 more
-- 
Thorsten Scherler <thorsten.at.apache.org>
Open Source Java <consulting, training and solutions>

Sociedad Andaluza para el Desarrollo de la Sociedad 
de la InformaciĆ³n, S.A.U. (SADESI)





Mime
View raw message