Hello together!

I have some trouble with the tutorials. I have created the two blocks and I am 
not able to connect them (http://cocoon.apache.org/2.2/1291_1_1.html). The only 
thing I've changed compared to the tutorial is to rename the blocks and 
pipeline-names:

myBlock1 = isac
myBlock2 = isac2
myFistPipeline = isacFirstPipeline
..
and so on, nothing special about this.
When I am trying to start mvn jetty:run, the following exceptions are thrown:


[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'jetty'.
[INFO] ------------------------------------------------------------------------
[INFO] Building isac
[INFO]    task-segment: [jetty:run]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing jetty:run
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] Preparing cocoon:rcl
[WARNING] Removing: rcl from forked lifecycle, to prevent recursive invocation.
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [cocoon:rcl {execution: rcl}]
[INFO] Creating a reloading Cocoon web application.
[INFO] Deploying string-template to WEB-INF/log4j.xml
[INFO] Adding lib to WEB-INF/lib: org.apache.commons:commons-jci-core:1.0:jar
[INFO] Adding lib to WEB-INF/lib: commons-logging:commons-logging:1.1:jar
[INFO] Adding lib to WEB-INF/lib: javax.servlet:servlet-api:2.3:jar
[INFO] Adding lib to WEB-INF/lib: org.apache.commons:commons-jci-fam:1.0:jar
[INFO] Adding lib to WEB-INF/lib: commons-logging:commons-logging-api:1.1:jar
[INFO] Adding lib to WEB-INF/lib: 
org.apache.cocoon:cocoon-rcl-webapp-wrapper:1.0.0-M1:jar
[INFO] Adding lib to WEB-INF/lib: log4j:log4j:1.2.14:jar
[INFO] Adding lib to WEB-INF/lib: commons-io:commons-io:1.3.1:jar
[INFO] No patches to apply
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [jetty:run]
[INFO] Configuring Jetty for project: isac
[INFO] Webapp source directory = 
/home/pepemuck/_opt/devel/isac/target/rcl/webapp
[INFO] web.xml file = 
/home/pepemuck/_opt/devel/isac/target/rcl/webapp/WEB-INF/web.xml
[INFO] Classes = /home/pepemuck/_opt/devel/isac/target/classes
[INFO] Property org.apache.cocoon.mode=dev was set
2008-03-08 14:02:02.990::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
[INFO] Context path = /
[INFO] Tmp directory = /home/pepemuck/_opt/devel/isac/target/work
[INFO] Web defaults =  jetty default
[INFO] Web overrides =  none
[INFO] Webapp directory = /home/pepemuck/_opt/devel/isac/target/rcl/webapp
[INFO] Starting jetty 6.1.5 ...
2008-03-08 14:02:02.095::INFO:  jetty-6.1.5
2008-03-08 14:02:02.384::INFO:  No Transaction manager found - if your webapp 
requires one, please configure one.
log4j:WARN No appenders could be found for logger 
(org.apache.commons.jci.stores.MemoryResourceStore).
log4j:WARN Please initialize the log4j system properly.
RCL [create]: 
/home/pepemuck/_opt/devel/isac/../isac2/target/classes/COB-INF/sitemap.xmap
RCL [create]: 
/home/pepemuck/_opt/devel/isac/../isac2/target/classes/META-INF/cocoon/spring/demo-application-context.xml
RCL [create]: 
/home/pepemuck/_opt/devel/isac/../isac2/target/classes/META-INF/cocoon/spring/servlet-service.xml
RCL [create]: 
/home/pepemuck/_opt/devel/isac/../isac2/target/classes/demo/MyBean.class
RCL [create]: 
/home/pepemuck/_opt/devel/isac/./target/classes/COB-INF/sitemap.xmap
RCL [create]: 
/home/pepemuck/_opt/devel/isac/./target/classes/META-INF/cocoon/spring/demo-application-context.xml
RCL [create]: 
/home/pepemuck/_opt/devel/isac/./target/classes/META-INF/cocoon/spring/servlet-service.xml
RCL [create]: /home/pepemuck/_opt/devel/isac/./target/classes/demo/MyBean.class
2008-03-08 14:02:03.077:/:INFO:  Initializing Spring root WebApplicationContext
2008-03-08 14:02:05.539::WARN:  Failed startup of context [EMAIL 
PROTECTED]/,/home/pepemuck/_opt/devel/isac/target/rcl/webapp}
java.lang.RuntimeException: Cannot invoke listener [EMAIL PROTECTED]
        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:530)
        at org.mortbay.jetty.servlet.Context.startContext(Context.java:135)
        at 
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
        at 
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
        at 
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
        at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
        at 
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
        at 
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
        at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
        at 
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
        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:217)
        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:345)
        at 
org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:286)
        at 
org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:204)
        at 
org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:183)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(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:333)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
        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.BeanDefinitionStoreException: 
Unable to read spring configurations from classpath*:META-INF/cocoon/spring; 
nested exception is 
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: 
Configuration problem: Cannot locate BeanDefinitionDecorator for element 
[connections]
Offending resource: URL 
[file:/home/pepemuck/_opt/devel/isac/target/classes/META-INF/cocoon/spring/servlet-service.xml]
        at 
org.apache.cocoon.spring.configurator.impl.AbstractSettingsElementParser.parse(AbstractSettingsElementParser.java:148)
        at 
org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:69)
        at 
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1114)
        at 
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1104)
        at 
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:133)
        at 
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:90)
        at 
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:458)
        at 
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:353)
        at 
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
        at 
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280)
        at 
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131)
        at 
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:147)
        at 
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)
        at 
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)
        at 
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:101)
        at 
org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:389)
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:324)
        at 
org.apache.cocoon.tools.rcl.springreloader.SynchronizedConfigureableWebApplicationContext.refresh(SynchronizedConfigureableWebApplicationContext.java:247)
        at 
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
        at 
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
        at 
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
        at 
org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingListener.invoke(ReloadingListener.java:157)
        ... 38 more
Caused by: 
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: 
Configuration problem: Cannot locate BeanDefinitionDecorator for element 
[connections]
Offending resource: URL 
[file:/home/pepemuck/_opt/devel/isac/target/classes/META-INF/cocoon/spring/servlet-service.xml]
        at 
org.springframework.beans.factory.parsing.FailFastProblemReporter.fatal(FailFastProblemReporter.java:59)
        at 
org.springframework.beans.factory.parsing.ReaderContext.fatal(ReaderContext.java:68)
        at 
org.springframework.beans.factory.parsing.ReaderContext.fatal(ReaderContext.java:55)
        at 
org.springframework.beans.factory.xml.NamespaceHandlerSupport.findDecoratorForNode(NamespaceHandlerSupport.java:127)
        at 
org.springframework.beans.factory.xml.NamespaceHandlerSupport.decorate(NamespaceHandlerSupport.java:106)
        at 
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.decorateIfRequired(BeanDefinitionParserDelegate.java:1143)
        at 
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.decorateBeanDefinitionIfRequired(BeanDefinitionParserDelegate.java:1132)
        at 
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.processBeanDefinition(DefaultBeanDefinitionDocumentReader.java:237)
        at 
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:151)
        at 
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:130)
        at 
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:90)
        at 
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:458)
        at 
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:353)
        at 
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
        at 
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280)
        at 
org.apache.cocoon.spring.configurator.impl.AbstractSettingsElementParser.handleImport(AbstractSettingsElementParser.java:197)
        at 
org.apache.cocoon.spring.configurator.impl.AbstractSettingsElementParser.handleBeanInclude(AbstractSettingsElementParser.java:187)
        at 
org.apache.cocoon.spring.configurator.impl.AbstractSettingsElementParser.parse(AbstractSettingsElementParser.java:145)
        ... 59 more
2008-03-08 14:02:05.620::INFO:  Started [EMAIL PROTECTED]:8888
[INFO] Started Jetty Server

I checked involved files for typos but could not find some. For being sure, 
I've repeated the complete tutorial-steps to this point several times with 
fresh created blocks. The exceptions remain.

Any advice what's actually going wrong? Should I try to use an older snapshot 
of cocoon (e.g. the archetype block 1.0.0-RC3-SNAPSHOT is not available, so I 
fall back to RC2 like the turorial)? Have there been important changes to the 
spring-version used by my cocoon-build, so that the definition of 
<servlet:connections> should be placed outside of the bean?

My cocoon revision is 634471
Maven version: 2.0.8
Java version: 1.5.0_15
OS name: "linux" version: "2.6.16-gentoo-r7" arch: "i386" Family: "unix"

By the way, I am still hoping to get some hints referring to my post "Help with 
Cocoon and Spring", because the available information about blocks and their 
usage is still a bit confusing for me.

Much thanks,
Patrick

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to