Daniel Fagerstrom wrote:
Luca Morandini skrev:
file:/C:/apps/cocoon-2.2-dev/core/cocoon-webapp/target/cocoon-webapp/WEB-INF/lib/cocoon-deployer-plugin-classloading.jar,

This is strange, I don't have this jar on my class path. It is probably a leftover from a build without the -Dmaven.war.shieldingclassloader=false switch. Try a "mvn -Dmaven.war.shieldingclassloader=false clean install" in the cocoon-webapp.

I always do a clean install... I already had my fingers burnt a few times ;)

Anyway, after an "svn up" and a clean install with shieeldingclassloader set to false, the error has changed, but an error it still is.

I issued:
cd core/cocoon-webapp/
mvn jetty:run -X -Dorg.apache.cocoon.mode=dev

but...
[DEBUG] classpath element: classes
[DEBUG] classpath element: concurrent-1.3.4.jar
[DEBUG] classpath element: aopalliance-1.0.jar
[DEBUG] classpath element: jakarta-bcel-20040329.jar
[DEBUG] classpath element: excalibur-logger-2.1.jar
[DEBUG] classpath element: jakarta-regexp-1.4.jar
[DEBUG] classpath element: commons-logging-1.0.4.jar
[DEBUG] classpath element: spring-beans-2.0.1.jar
[DEBUG] classpath element: cocoon-core-2.2.0-M2-SNAPSHOT.jar
[DEBUG] classpath element: excalibur-sourceresolve-2.1.jar
[DEBUG] classpath element: commons-lang-2.1.jar
[DEBUG] classpath element: junit-3.8.jar
[DEBUG] classpath element: avalon-framework-api-4.3.jar
[DEBUG] classpath element: log4j-1.2.13.jar
[DEBUG] classpath element: excalibur-xmlutil-2.1.jar
[DEBUG] classpath element: commons-jxpath-1.2.jar
[DEBUG] classpath element: commons-jexl-1.0.jar
[DEBUG] classpath element: excalibur-store-2.1.jar
[DEBUG] classpath element: commons-jci-core-1.0-SNAPSHOT.jar
[DEBUG] classpath element: xml-apis-1.3.02.jar
[DEBUG] classpath element: commons-jci-fam-1.0-SNAPSHOT.jar
[DEBUG] classpath element: excalibur-pool-api-2.1.jar
[DEBUG] classpath element: ehcache-1.2.jar
[DEBUG] classpath element: avalon-framework-impl-4.3.jar
[DEBUG] classpath element: xml-resolver-1.1.jar
[DEBUG] classpath element: xalan-2.7.0.jar
[DEBUG] classpath element: spring-web-2.0.1.jar
[DEBUG] classpath element: excalibur-instrument-api-2.1.jar
[DEBUG] classpath element: commons-collections-3.2.jar
[DEBUG] classpath element: cocoon-blocks-fw-impl-1.0.0-SNAPSHOT.jar
[DEBUG] classpath element: commons-logging-api-1.0.4.jar
[DEBUG] classpath element: commons-io-1.2.jar
[DEBUG] classpath element: spring-context-2.0.1.jar
[DEBUG] classpath element: xercesImpl-2.8.0.jar
[DEBUG] classpath element: spring-aop-2.0.1.jar
[DEBUG] classpath element: spring-core-2.0.1.jar
[INFO] Webapp directory = C:\apps\cocoon-2.2-dev\core\cocoon-webapp\target\cocoon-webapp
[INFO] Starting jetty 6.0.0rc4 ...
2006-11-28 04:23:57.703::INFO:  jetty-6.0.0rc4
[DEBUG] Setting up classpath ...

...

[DEBUG] Started configuring web.xml, resource base=C:\apps\cocoon-2.2-dev\core\cocoon-webapp\target\cocoon-webapp
2006-11-28 04:23:58.343::INFO:  Bound java:comp/env/greeting=Hello, World
[DEBUG] Finished configuring web.xml
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
2006-11-28 04:23:59.015:/:INFO:  Loading Spring root WebApplicationContext
2006-11-28 04:24:00.390:/:INFO: Apache Cocoon 2.2.0-M2-SNAPSHOT is running in mode: dev 2006-11-28 04:24:01.437::WARN: failed [EMAIL PROTECTED]/,file:/C:/apps/cocoon-2.2-dev/core/cocoon-webapp/target/cocoon-webapp/}
2006-11-28 04:24:01.437::WARN:  failed [EMAIL PROTECTED]
2006-11-28 04:24:01.437::WARN:  failed [EMAIL PROTECTED]
2006-11-28 04:24:01.781::INFO: Started SelectChannelConnector @ 0.0.0.0:8888
2006-11-28 04:24:01.781::WARN:  failed [EMAIL PROTECTED]
[INFO] Jetty server exiting.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failure

Embedded error: Error creating bean with name 'org.apache.cocoon.core.main.block' defined in URL [jar:file:/C:/apps/cocoon-2.2-dev/core/cocoon-webapp/target/cocoon-webapp/WEB-INF/lib/cocoon-core-main-sample-1.0.0-SNAPSHOT.jar!/META-INF/cocoon/spring/cocoon-core-main-sample-blockServlet.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not create configuration for TreeProcesoor; nested exception is java.io.IOException: Couldn't find the sitemap /sitemap.xmap [INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Failure
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559) 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)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failure
at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:340) at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:272) at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:177) 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)
        ... 16 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cocoon.core.main.block' defined in URL [jar:file:/C:/apps/cocoon-2.2-dev/core/cocoon-webapp/target/cocoon-webapp/WEB-INF/lib/cocoon-core-main-sample-1.0.0-SNAPSHOT.jar!/META-INF/cocoon/spring/cocoon-core-main-sample-blockServlet.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not create configuration for TreeProcesoor; nested exception is java.io.IOException: Couldn't find the sitemap /sitemap.xmap at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1027) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:140) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:273) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346) 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:441)


The next question is of course why the shielding classloader doesn't work in some environments. It works for me (jdk1.5.0_06, Windows XP).

It's the same environment for me as well.

Regards,

--------------------
   Luca Morandini
www.lucamorandini.it
--------------------

Reply via email to