cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robby Pelssers" <robby.pelss...@ciber.nl>
Subject [Cocoon 3] : Annotation-specified bean name 'org.apache.cocoon.sample.controller.DemoRESTController' for bean class [org.apache.cocoon.sample.controller.DemoRESTController] conflicts with existing, non-compatible bean definition of same name and class
Date Mon, 11 May 2009 08:41:22 GMT
Hi all,

 

Anybody having the same problem when trying to run the cocoon3 sample?

 

Cheers,

Robby Pelssers

 

log4j:WARN Please initialize the log4j system properly.

log4j:WARN Please initialize the log4j system properly.

2009-05-11 10:32:54.224:/:INFO:  Initializing Spring root
WebApplicationContext

2009-05-11 10:32:54.724::WARN:  Failed startup of context
org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@101fa9e{/,D:\developm
ent\workspaces\nxp\cocoon3_demo\target\rcl\webapp}

java.lang.RuntimeException: Cannot invoke listener
org.springframework.web.context.ContextLoaderListener@40627c

        at
org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingListener.invoke(Rel
oadingListener.java:190)

        at
org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingListener.contextIni
tialized(ReloadingListener.java:213)

        at
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.jav
a:540)

        at
org.mortbay.jetty.servlet.Context.startContext(Context.java:135)

        at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1
220)

        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(Jetty6PluginW
ebAppContext.java:110)

        at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)

        at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.ja
va:152)

        at
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandle
rCollection.java:156)

        at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)

        at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.ja
va: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.jav
a:132)

        at
org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.
java:357)

        at
org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.jav
a:293)

        at
org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMo
jo.java:203)

        at
org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:182)

        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:451)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:558)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
l(DefaultLifecycleExecutor.java:512)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:482)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:330)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:291)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:142)

        at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)

        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)

        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.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.BeanDefinitionStoreException: Unexpected exception parsing
XML document from URL
[file:/D:/development/workspaces/nxp/cocoon3_demo/target/classes/META-IN
F/cocoon/spring/cocoon-sa

mple-controller.xml]; nested exception is
java.lang.IllegalStateException: Annotation-specified bean name
'org.apache.cocoon.sample.controller.DemoRESTController' for bean class
[org.apache.co

coon.sample.controller.DemoRESTController] conflicts with existing,
non-compatible bean definition of same name and class
[org.apache.cocoon.sample.controller.DemoRESTController]

        at
org.apache.cocoon.spring.configurator.impl.AbstractSettingsElementParser
.parse(AbstractSettingsElementParser.java:157)

        at
org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(Name
spaceHandlerSupport.java:69)

        at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parse
CustomElement(BeanDefinitionParserDelegate.java:1255)

        at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parse
CustomElement(BeanDefinitionParserDelegate.java:1245)

        at
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReade
r.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135)

        at
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReade
r.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)

        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBe
anDefinitions(XmlBeanDefinitionReader.java:507)

        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBean
Definitions(XmlBeanDefinitionReader.java:398)

        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDe
finitions(XmlBeanDefinitionReader.java:342)

        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDe
finitions(XmlBeanDefinitionReader.java:310)

        at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.l
oadBeanDefinitions(AbstractBeanDefinitionReader.java:143)

        at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.l
oadBeanDefinitions(AbstractBeanDefinitionReader.java:178)

        at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.l
oadBeanDefinitions(AbstractBeanDefinitionReader.java:149)

        at
org.springframework.web.context.support.XmlWebApplicationContext.loadBea
nDefinitions(XmlWebApplicationContext.java:124)

        at
org.springframework.web.context.support.XmlWebApplicationContext.loadBea
nDefinitions(XmlWebApplicationContext.java:92)

        at
org.springframework.context.support.AbstractRefreshableApplicationContex
t.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)

        at
org.springframework.context.support.AbstractApplicationContext.obtainFre
shBeanFactory(AbstractApplicationContext.java:423)

        at
org.springframework.context.support.AbstractApplicationContext.refresh(A
bstractApplicationContext.java:353)

        at
org.apache.cocoon.tools.rcl.springreloader.SynchronizedConfigureableWebA
pplicationContext.refresh(SynchronizedConfigureableWebApplicationContext
.java:254)

        at
org.springframework.web.context.ContextLoader.createWebApplicationContex
t(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(Rel
oadingListener.java:157)

        ... 39 more

Caused by:
org.springframework.beans.factory.BeanDefinitionStoreException:
Unexpected exception parsing XML document from URL
[file:/D:/development/workspaces/nxp/cocoon3_demo/target/classes/M

ETA-INF/cocoon/spring/cocoon-sample-controller.xml]; nested exception is
java.lang.IllegalStateException: Annotation-specified bean name
'org.apache.cocoon.sample.controller.DemoRESTController

' for bean class
[org.apache.cocoon.sample.controller.DemoRESTController] conflicts with
existing, non-compatible bean definition of same name and class
[org.apache.cocoon.sample.controller.De

moRESTController]

        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBean
Definitions(XmlBeanDefinitionReader.java:420)

        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDe
finitions(XmlBeanDefinitionReader.java:342)

        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDe
finitions(XmlBeanDefinitionReader.java:310)

        at
org.apache.cocoon.spring.configurator.impl.AbstractSettingsElementParser
.handleImport(AbstractSettingsElementParser.java:207)

        at
org.apache.cocoon.spring.configurator.impl.AbstractSettingsElementParser
.handleBeanInclude(AbstractSettingsElementParser.java:197)

        at
org.apache.cocoon.spring.configurator.impl.AbstractSettingsElementParser
.parse(AbstractSettingsElementParser.java:154)

        ... 61 more

Caused by: java.lang.IllegalStateException: Annotation-specified bean
name 'org.apache.cocoon.sample.controller.DemoRESTController' for bean
class [org.apache.cocoon.sample.controller.DemoREST

Controller] conflicts with existing, non-compatible bean definition of
same name and class
[org.apache.cocoon.sample.controller.DemoRESTController]

        at
org.springframework.context.annotation.ClassPathBeanDefinitionScanner.ch
eckCandidate(ClassPathBeanDefinitionScanner.java:267)

        at
org.springframework.context.annotation.ClassPathBeanDefinitionScanner.do
Scan(ClassPathBeanDefinitionScanner.java:208)

        at
org.springframework.context.annotation.ComponentScanBeanDefinitionParser
.parse(ComponentScanBeanDefinitionParser.java:85)

        at
org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(Name
spaceHandlerSupport.java:69)

        at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parse
CustomElement(BeanDefinitionParserDelegate.java:1255)

        at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parse
CustomElement(BeanDefinitionParserDelegate.java:1245)

        at
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReade
r.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135)

        at
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReade
r.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)

        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBe
anDefinitions(XmlBeanDefinitionReader.java:507)

        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBean
Definitions(XmlBeanDefinitionReader.java:398)

        ... 66 more

2009-05-11 10:32:55.958::INFO:  Started
SelectChannelConnector@0.0.0.0:8888

[INFO] Started Jetty Server


Mime
View raw message