cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From werner <wer...@gefi.at>
Subject Help with Cocoon 2.2.x
Date Fri, 13 Jul 2007 06:27:55 GMT
Dear Community!

I'm getting errors when running the current 2.2 snapshot. I followed the
instructions in the README. Looks like the cocoon.roles is missing in
the cocoon-core jar. So it might be just a maven setup problem. Please
help.

Thanks 
Werner

[jar:file:/opt/cocoon/cocoon-2.2.x/core/cocoon-webapp/target/cocoon-webapp/WEB-INF/lib/cocoon-xsp-sample-1.0.0-SNAPSHOT.jar!/META-INF/cocoon/spring/cocoon-xsp-sample-blockServlet.xml]
ERROR [main] (ContextLoader.java:203) - Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Unable
to read Avalon configuration from
'resource://org/apache/cocoon/cocoon.xconf'.; nested exception is
org.apache.avalon.framework.configuration.ConfigurationException: Cannot
load 'resource://org/apache/cocoon/cocoon.roles' at
jar:file:/opt/cocoon/cocoon-2.2.x/core/cocoon-webapp/target/cocoon-webapp/WEB-INF/lib/cocoon-core-2.2.0-RC2-SNAPSHOT.jar!/org/apache/cocoon/cocoon.xconf:30:61
Caused by: 
org.apache.avalon.framework.configuration.ConfigurationException: Cannot
load 'resource://org/apache/cocoon/cocoon.roles' at
jar:file:/opt/cocoon/cocoon-2.2.x/core/cocoon-webapp/target/cocoon-webapp/WEB-INF/lib/cocoon-core-2.2.0-RC2-SNAPSHOT.jar!/org/apache/cocoon/cocoon.xconf:30:61
	at
org.apache.cocoon.core.container.spring.avalon.ConfigurationReader.handleInclude(ConfigurationReader.java:460)
	at
org.apache.cocoon.core.container.spring.avalon.ConfigurationReader.parseConfiguration(ConfigurationReader.java:304)
	at
org.apache.cocoon.core.container.spring.avalon.ConfigurationReader.convert(ConfigurationReader.java:253)
	at
org.apache.cocoon.core.container.spring.avalon.ConfigurationReader.convert(ConfigurationReader.java:212)
	at
org.apache.cocoon.core.container.spring.avalon.ConfigurationReader.readConfiguration(ConfigurationReader.java:80)
	at
org.apache.cocoon.core.container.spring.avalon.BridgeElementParser.readConfiguration(BridgeElementParser.java:142)
	at
org.apache.cocoon.core.container.spring.avalon.BridgeElementParser.parse(BridgeElementParser.java:74)
	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.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.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:451)
	at org.mortbay.jetty.servlet.Context.startContext(Context.java:124)
	at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1219)
	at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:421)
	at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:496)
	at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
	at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:156)
	at
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:120)
	at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
	at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:156)
	at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
	at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:119)
	at org.mortbay.jetty.Server.doStart(Server.java:228)
	at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
	at
org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:134)
	at
org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:332)
	at
org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:277)
	at
org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:195)
	at
org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:183)
	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.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:334)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
	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.apache.avalon.framework.configuration.ConfigurationException: Cannot
load
'jar:file:/opt/cocoon/cocoon-2.2.x/core/cocoon-webapp/target/cocoon-webapp/WEB-INF/lib/cocoon-core-2.2.0-RC2-SNAPSHOT.jar!/org/apache/cocoon/cocoon.roles'
at jar:file:/opt/cocoon/cocoon-2.2.x/core/cocoon-webapp/target/cocoon-webapp/WEB-INF/lib/cocoon-core-2.2.0-RC2-SNAPSHOT.jar!/org/apache/cocoon/cocoon.xconf:30:61
	at
org.apache.cocoon.core.container.spring.avalon.ConfigurationReader.loadURI(ConfigurationReader.java:508)
	at
org.apache.cocoon.core.container.spring.avalon.ConfigurationReader.handleInclude(ConfigurationReader.java:458)
	... 62 more
Caused by: org.gjt.xpp.XmlPullParserException: <![DOCTYPE declarations
not supported at line 33 and column 3 seen "...CDATA #REQUIRED\n
class CDATA #REQUIRED\n>\n]"... (parser state UNKNONW_EVENT (-1))
	at org.gjt.xpp.sax2.Driver.parse(Driver.java:304)
	at
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.build(DefaultConfigurationBuilder.java:255)
	at
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.build(DefaultConfigurationBuilder.java:224)
	at
org.apache.cocoon.core.container.spring.avalon.ConfigurationReader.loadURI(ConfigurationReader.java:506)
	... 63 more
[INFO] Started Jetty Server
[INFO] Jetty server exiting.
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 minute 37 seconds
[INFO] Finished at: Fri Jul 13 08:11:34 CEST 2007
[INFO] Final Memory: 28M/50M
[INFO]
------------------------------------------------------------------------


Mime
View raw message