cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kris Schneider <kschnei...@gmail.com>
Subject Class loading issues with Cocoon 2.1.7 and WebLogic 8.1 SP4
Date Mon, 20 Jun 2005 17:26:21 GMT
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 <mailto:kschneider@gmail.com>

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


Mime
View raw message