You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Kris Schneider <ks...@gmail.com> on 2005/06/20 19:26:21 UTC

Class loading issues with Cocoon 2.1.7 and WebLogic 8.1 SP4

I've tried to gather as much as I could from the mail archives and the
wiki, but I'm not having much success. The application is based on
Cocoon 2.1.7 and needs to run on WebLogic 8.1 SP4. I have the
following in web.xml:

<servlet-class>org.apache.cocoon.servlet.ParanoidCocoonServlet</servlet-class>

And the following in weblogic.xml:

<container-descriptor>
  <prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>

I get the following from the server's stdout:

CLASSPATH=C:\oracle\jdbc\10.1.0.2.0\ojdbc14.jar;C:\jdk1.4.2\lib\tools.jar;C:\bea8\WEBLOG~1\server\lib\weblogic_sp.jar;C:\bea8\WEBLOG~1\server\lib\weblogic.jar;C:\bea8\WEBLOG~1\server\lib\webservices.jar
...
Cocoon: init
Cocoon: Adding class library
file:/C:/work/dotech/realnet/trunk/build/cocoon/webapp/WEB-INF/lib/activation.jar
...
Cocoon: Adding class library
file:/C:/work/dotech/realnet/trunk/build/cocoon/webapp/WEB-INF/lib/xreporter-expression-20040701.jar
Cocoon: Loading servlet class org.apache.cocoon.servlet.CocoonServlet
Cocoon: init
...
java.runtime.version = 1.4.2_08-b03
...
os.name = Windows XP
...
org.xml.sax.driver = weblogic.apache.xerces.parsers.SAXParser
org.xml.sax.parser = weblogic.xml.jaxp.RegistryParser
...

There didn't appear to be any "javax.xml.parsers.*" system properties
set. When I make an initial request to the app, I get the following
exception:

java.lang.RuntimeException: java.lang.ClassCastException
	at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3418)
	at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:389)
	at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55)
	at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:560)
	at org.apache.cocoon.generation.RequestGenerator.generate(RequestGenerator.java:195)
    ...
	at org.apache.cocoon.Cocoon.process(Cocoon.java:608)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1123)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.cocoon.servlet.ParanoidCocoonServlet.service(ParanoidCocoonServlet.java:316)
    ...

There are no JAXP-related JAR files installed in the endorsed dir.
Just for kicks, I tried running JRockit 1.4.2_05-b04 instead of Sun's
JVM and got a similar error:

java.lang.RuntimeException: java.lang.ClassCastException: inv1
	at org.apache.xalan.transformer.TransformerImpl.run()V(TransformerImpl.java:3418)
	at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument()V(TransformerHandlerImpl.java:389)
	at org.apache.cocoon.xml.AbstractXMLPipe.endDocument()V(AbstractXMLPipe.java:55)
	at org.apache.cocoon.transformation.TraxTransformer.endDocument()V(TraxTransformer.java:560)
	at org.apache.cocoon.generation.RequestGenerator.generate()V(RequestGenerator.java:195)
    ...
	at org.apache.cocoon.Cocoon.process(Lorg.apache.cocoon.environment.Environment;)Z(Cocoon.java:608)
	at org.apache.cocoon.servlet.CocoonServlet.service(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(CocoonServlet.java:1123)
	at javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(HttpServlet.java:853)
	at org.apache.cocoon.servlet.ParanoidCocoonServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(ParanoidCocoonServlet.java:316)

I'm about out of ideas at this point, so any suggestions are certainly
welcome. Thanks!

-- 
Kris Schneider <ma...@gmail.com>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Class loading issues with Cocoon 2.1.7 and WebLogic 8.1 SP4

Posted by Geert Josten <Ge...@daidalos.nl>.
Hmmm, looking at the source code, you should be right, but my experience was different. Maybe, I got 
it all wrong..

Sorry,
G.

Kris Schneider wrote:

> Hm, that's not really true though is it? It just tries to load a class
> itself before delegating to its parent.
> 
> On 6/20/05, Geert Josten <Ge...@daidalos.nl> wrote:
> 
>>Hi,
>>
>>Keep in mind that the ParanoidCocoonServlet is *really* paranoid. It simply doesn't load anything
>>that comes from outsite the web application. Make sure you have _all_ necesary jars in web-inf/lib/...
>>
>>Cheers,
>>Geert
> 
> 

-- 
=====================================
NB: het Daidalos kantoor is sinds 22 april
jl. gevestigd op een nieuw adres:

Daidalos BV
Hoekeindsehof 1 - 4
2665 JZ Bleiswijk
tel: +31 (0)10 850 12 00
fax: +31 (0)10 850 11 99

Bovenstaand adres is tevens het postadres.
======================
Geert.Josten@Daidalos.nl
IT-consultant at Daidalos BV

http://www.daidalos.nl/

GPG: 1024D/12DEBB50

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Class loading issues with Cocoon 2.1.7 and WebLogic 8.1 SP4

Posted by Kris Schneider <ks...@gmail.com>.
Hm, that's not really true though is it? It just tries to load a class
itself before delegating to its parent.

On 6/20/05, Geert Josten <Ge...@daidalos.nl> wrote:
> Hi,
> 
> Keep in mind that the ParanoidCocoonServlet is *really* paranoid. It simply doesn't load anything
> that comes from outsite the web application. Make sure you have _all_ necesary jars in web-inf/lib/...
> 
> Cheers,
> Geert

-- 
Kris Schneider <ma...@gmail.com>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Class loading issues with Cocoon 2.1.7 and WebLogic 8.1 SP4

Posted by Geert Josten <Ge...@daidalos.nl>.
Hi,

Keep in mind that the ParanoidCocoonServlet is *really* paranoid. It simply doesn't load anything 
that comes from outsite the web application. Make sure you have _all_ necesary jars in web-inf/lib/...

Cheers,
Geert

Kris Schneider wrote:

> I've tried to gather as much as I could from the mail archives and the
> wiki, but I'm not having much success. The application is based on
> Cocoon 2.1.7 and needs to run on WebLogic 8.1 SP4. I have the
> following in web.xml:
> 
> <servlet-class>org.apache.cocoon.servlet.ParanoidCocoonServlet</servlet-class>
> 
> And the following in weblogic.xml:
> 
> <container-descriptor>
>   <prefer-web-inf-classes>true</prefer-web-inf-classes>
> </container-descriptor>
> 
> I get the following from the server's stdout:
> 
> CLASSPATH=C:\oracle\jdbc\10.1.0.2.0\ojdbc14.jar;C:\jdk1.4.2\lib\tools.jar;C:\bea8\WEBLOG~1\server\lib\weblogic_sp.jar;C:\bea8\WEBLOG~1\server\lib\weblogic.jar;C:\bea8\WEBLOG~1\server\lib\webservices.jar
> ...
> Cocoon: init
> Cocoon: Adding class library
> file:/C:/work/dotech/realnet/trunk/build/cocoon/webapp/WEB-INF/lib/activation.jar
> ...
> Cocoon: Adding class library
> file:/C:/work/dotech/realnet/trunk/build/cocoon/webapp/WEB-INF/lib/xreporter-expression-20040701.jar
> Cocoon: Loading servlet class org.apache.cocoon.servlet.CocoonServlet
> Cocoon: init
> ...
> java.runtime.version = 1.4.2_08-b03
> ...
> os.name = Windows XP
> ...
> org.xml.sax.driver = weblogic.apache.xerces.parsers.SAXParser
> org.xml.sax.parser = weblogic.xml.jaxp.RegistryParser
> ...
> 
> There didn't appear to be any "javax.xml.parsers.*" system properties
> set. When I make an initial request to the app, I get the following
> exception:
> 
> java.lang.RuntimeException: java.lang.ClassCastException
> 	at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3418)
> 	at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:389)
> 	at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55)
> 	at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:560)
> 	at org.apache.cocoon.generation.RequestGenerator.generate(RequestGenerator.java:195)
>     ...
> 	at org.apache.cocoon.Cocoon.process(Cocoon.java:608)
> 	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1123)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at org.apache.cocoon.servlet.ParanoidCocoonServlet.service(ParanoidCocoonServlet.java:316)
>     ...
> 
> There are no JAXP-related JAR files installed in the endorsed dir.
> Just for kicks, I tried running JRockit 1.4.2_05-b04 instead of Sun's
> JVM and got a similar error:
> 
> java.lang.RuntimeException: java.lang.ClassCastException: inv1
> 	at org.apache.xalan.transformer.TransformerImpl.run()V(TransformerImpl.java:3418)
> 	at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument()V(TransformerHandlerImpl.java:389)
> 	at org.apache.cocoon.xml.AbstractXMLPipe.endDocument()V(AbstractXMLPipe.java:55)
> 	at org.apache.cocoon.transformation.TraxTransformer.endDocument()V(TraxTransformer.java:560)
> 	at org.apache.cocoon.generation.RequestGenerator.generate()V(RequestGenerator.java:195)
>     ...
> 	at org.apache.cocoon.Cocoon.process(Lorg.apache.cocoon.environment.Environment;)Z(Cocoon.java:608)
> 	at org.apache.cocoon.servlet.CocoonServlet.service(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(CocoonServlet.java:1123)
> 	at javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(HttpServlet.java:853)
> 	at org.apache.cocoon.servlet.ParanoidCocoonServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(ParanoidCocoonServlet.java:316)
> 
> I'm about out of ideas at this point, so any suggestions are certainly
> welcome. Thanks!
> 

-- 
=====================================
NB: het Daidalos kantoor is sinds 22 april
jl. gevestigd op een nieuw adres:

Daidalos BV
Hoekeindsehof 1 - 4
2665 JZ Bleiswijk
tel: +31 (0)10 850 12 00
fax: +31 (0)10 850 11 99

Bovenstaand adres is tevens het postadres.
======================
Geert.Josten@Daidalos.nl
IT-consultant at Daidalos BV

http://www.daidalos.nl/

GPG: 1024D/12DEBB50

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org