cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grzegorz Kossakowski <g...@tuffmail.com>
Subject Problem with running cocoon-core-2.2.0-M2
Date Wed, 20 Dec 2006 23:31:23 GMT
Hello,

I've made following steps:
mvn archetype:create \
    -DarchetypeGroupId=org.apache.cocoon \
    -DarchetypeArtifactId=cocoon-22-archetype-block \
    -DarchetypeVersion=1.0.0-M4 \
    -DgroupId=pl.grek \
    -DartifactId=testblock

changed mountPath to "/".

cd testblock
mvn install
cd ..

mvn archetype:create \
    -DarchetypeGroupId=org.apache.cocoon \
    -DarchetypeArtifactId=cocoon-22-archetype-webapp \
    -DarchetypeVersion=1.0.0-M1 \
    -DgroupId=pl.grek \
    -DartifactId=testwebapp

cd testwebaoo

Added dependency on testblock into pom.xml and executed:
mvn package jetty:run and got:

[INFO] [jetty:run]
[INFO] Configuring Jetty for project: testwebapp
[INFO] Webapp source directory =
/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT
[INFO] web.xml file =
/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/web.xml
[INFO] Classes = /home/grek/c2.2-test/testwebapp/target/classes
2006-12-21 00:23:58.870::INFO:  Logging to STDERR via
org.mortbay.log.StdErrLog
[INFO] Context path = /
[INFO] Tmp directory = /home/grek/c2.2-test/testwebapp/target/work
[INFO] Web defaults =  jetty default
[INFO] Web overrides =  none
[INFO] Webapp directory =
/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT
[INFO] Starting jetty 6.0.2 ...
2006-12-21 00:23:58.942::INFO:  jetty-6.0.2
[INFO] Classpath =
[file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/commons-collections-3.2.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/js-1.6R5.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/cocoon-blocks-fw-impl-1.0.0-M1.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/excalibur-sourceresolve-2.1.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/xercesImpl-2.8.0.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/spring-beans-2.0.1.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/cocoon-core-2.2.0-M2.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/excalibur-pool-api-2.1.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/aopalliance-1.0.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/avalon-framework-impl-4.3.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/excalibur-store-2.1.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/cocoon-flowscript-impl-1.0.0-M1.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/jakarta-bcel-20040329.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/spring-context-2.0.1.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/commons-jexl-1.0.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/junit-3.8.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/ehcache-1.2.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/commons-io-1.2.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/excalibur-logger-2.1.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/testroot-1.0-SNAPSHOT.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/xalan-2.7.0.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/spring-core-2.0.1.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/spring-aop-2.0.1.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/log4j-1.2.13.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/spring-web-2.0.1.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/cocoon-template-impl-1.0.0-M2.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/commons-logging-1.0.4.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/testblock-1.0-SNAPSHOT.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/commons-lang-2.1.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/commons-jxpath-1.2.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/excalibur-xmlutil-2.1.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/jakarta-regexp-1.4.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/xml-apis-1.3.02.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/xml-resolver-1.1.jar,
file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/WEB-INF/lib/concurrent-1.3.4.jar,
file:/home/grek/c2.2-test/testwebapp/target/classes/,
file:/home/grek/.m2/repository/concurrent/concurrent/1.3.4/concurrent-1.3.4.jar,
file:/home/grek/.m2/repository/org/apache/cocoon/cocoon-flowscript-impl/1.0.0-M1/cocoon-flowscript-impl-1.0.0-M1.jar,
file:/home/grek/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar,
file:/home/grek/.m2/repository/jakarta-bcel/jakarta-bcel/20040329/jakarta-bcel-20040329.jar,
file:/home/grek/.m2/repository/org/apache/excalibur/containerkit/logger/excalibur-logger/2.1/excalibur-logger-2.1.jar,
file:/home/grek/.m2/repository/jakarta-regexp/jakarta-regexp/1.4/jakarta-regexp-1.4.jar,
file:/home/grek/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar,
file:/home/grek/.m2/repository/org/springframework/spring-beans/2.0.1/spring-beans-2.0.1.jar,
file:/home/grek/.m2/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.jar,
file:/home/grek/.m2/repository/junit/junit/3.8/junit-3.8.jar,
file:/home/grek/.m2/repository/org/apache/excalibur/components/sourceresolve/excalibur-sourceresolve/2.1/excalibur-sourceresolve-2.1.jar,
file:/home/grek/.m2/repository/log4j/log4j/1.2.13/log4j-1.2.13.jar,
file:/home/grek/.m2/repository/org/apache/excalibur/components/xmlutil/excalibur-xmlutil/2.1/excalibur-xmlutil-2.1.jar,
file:/home/grek/.m2/repository/commons-jxpath/commons-jxpath/1.2/commons-jxpath-1.2.jar,
file:/home/grek/.m2/repository/commons-jexl/commons-jexl/1.0/commons-jexl-1.0.jar,
file:/home/grek/.m2/repository/org/apache/excalibur/components/store/excalibur-store/2.1/excalibur-store-2.1.jar,
file:/home/grek/.m2/repository/xml-apis/xml-apis/1.3.02/xml-apis-1.3.02.jar,
file:/home/grek/.m2/repository/org/apache/excalibur/components/pool/excalibur-pool-api/2.1/excalibur-pool-api-2.1.jar,
file:/home/grek/.m2/repository/org/apache/cocoon/cocoon-blocks-fw-impl/1.0.0-M1/cocoon-blocks-fw-impl-1.0.0-M1.jar,
file:/home/grek/.m2/repository/net/sf/ehcache/ehcache/1.2/ehcache-1.2.jar,
file:/home/grek/.m2/repository/org/apache/avalon/framework/avalon-framework-impl/4.3/avalon-framework-impl-4.3.jar,
file:/home/grek/.m2/repository/rhino/js/1.6R5/js-1.6R5.jar,
file:/home/grek/.m2/repository/xml-resolver/xml-resolver/1.1/xml-resolver-1.1.jar,
file:/home/grek/.m2/repository/xalan/xalan/2.7.0/xalan-2.7.0.jar,
file:/home/grek/.m2/repository/org/springframework/spring-web/2.0.1/spring-web-2.0.1.jar,
file:/home/grek/.m2/repository/pl/grek/testroot/1.0-SNAPSHOT/testroot-1.0-SNAPSHOT.jar,
file:/home/grek/.m2/repository/org/apache/cocoon/cocoon-template-impl/1.0.0-M2/cocoon-template-impl-1.0.0-M2.jar,
file:/home/grek/.m2/repository/commons-collections/commons-collections/3.2/commons-collections-3.2.jar,
file:/home/grek/.m2/repository/pl/grek/testblock/1.0-SNAPSHOT/testblock-1.0-SNAPSHOT.jar,
file:/home/grek/.m2/repository/org/springframework/spring-context/2.0.1/spring-context-2.0.1.jar,
file:/home/grek/.m2/repository/commons-io/commons-io/1.2/commons-io-1.2.jar,
file:/home/grek/.m2/repository/xerces/xercesImpl/2.8.0/xercesImpl-2.8.0.jar,
file:/home/grek/.m2/repository/org/apache/cocoon/cocoon-core/2.2.0-M2/cocoon-core-2.2.0-M2.jar,
file:/home/grek/.m2/repository/org/springframework/spring-aop/2.0.1/spring-aop-2.0.1.jar,
file:/home/grek/.m2/repository/org/springframework/spring-core/2.0.1/spring-core-2.0.1.jar]
log4j:WARN No appenders could be found for logger
(org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
2006-12-21 00:23:59.842:/:INFO:  Loading Spring root WebApplicationContext
2006-12-21 00:24:00.821::WARN:  Failed startup of context
org.mortbay.jetty.webapp.WebAppContext@4b0613aa{/,file:/home/grek/c2.2-test/testwebapp/target/testwebapp-1.0-SNAPSHOT/}
org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
Configuration problem: Unable to locate NamespaceHandler for namespace
[http://cocoon.apache.org/avalon]
Offending resource: ServletContext resource
[/WEB-INF/applicationContext.xml]
        at
org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:59)
        at
org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:64)
        at
org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:55)
        at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1144)
        at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1137)
        at
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:143)
        at
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:88)
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:499)
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:407)
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:357)
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
        at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126)
        at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)
        at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:123)
        at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:91)
        at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:292)
        at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
        at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
        at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
        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:412)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        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)
2006-12-21 00:24:00.854::INFO:  Started SelectChannelConnector @
0.0.0.0:8888
[INFO] Started Jetty Server


After doing some investigation on spring forums it seems that
src/main/resources/META-INF/spring.handlers from cocoon-core is not
being seen. What is also interesting, jar of cocoon-core is mentioned
two times in classpath. Is it expected situation?

Any hints, clues?

-- 
Grzegorz Kossakowski

Mime
View raw message