cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <>
Subject Re: Classloading issue in 2.2
Date Thu, 13 Jul 2006 09:55:03 GMT
Hash: SHA1

On Thu, 13 Jul 2006, Carsten Ziegeler wrote:

> Date: Thu, 13 Jul 2006 11:30:02 +0200
> From: Carsten Ziegeler <>
> Reply-To:
> To:
> Subject: Re: Classloading issue in 2.2
> Giacomo Pati schrieb:
>> After again playing around a bit with 2.2 I have a strange issue with
>> the new shielded classloading stuff.
>> Give you have 'cocoon:deploy' the cocoon-webapp module and copied it
>> into a standalone jetty/tomcat webapps directory everithing runs smooth.
>> Now if you unjar the WEB-INF/cocoon/lib/cocoon-core-2.2-SNAPSHOT.jar
>> into WEB-INF/cocoon/classes (which I suppose should yield the same
>> behaviour) I got a
>> Caused by: java.lang.ClassNotFoundException: org.apache.cocoon.servlet.CocoonServletListener
>>          at org.apache.catalina.loader.WebappClassLoader.loadClass(
>> Looking at the BootstrapClassLoaderManager class I cannot see why this
>> happens. Can someone verify this?
> No :) It works perfectly for me. Strange.

Just to make sure: It works for you in an independant servlet container 
(not in the jetty6:run).

Because the problem I have is that I have a 2.2. project with 
packaging=war with additional java classes which will end up in 
target/classes first (compile phase), WEB-INF/classes next (war plugin) 
and finally in WEB-INF/cocoon/classes (cocoon:deploy plugin) but those 
were not found when deploying target/cocoon-webapp into a different 
servlet engine.

- -- 
Giacomo Pati
Otego AG, Switzerland -
Orixo, the XML business alliance -
Version: GnuPG v1.4.4 (GNU/Linux)


View raw message