cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Skansen" <>
Subject Jetty and Cocoon2, help?
Date Mon, 11 Mar 2002 18:22:06 GMT

I have been tracking this list for a while and is just starting to use coocoon2.

My problem is that i'm not able to get cocoon2 running with jetty.
I think i'm missing som jar or have configuered the parser wrong.

Can anbody help me or should i give tomcat a try instead.



* I have succesfully downloaded from cvs and compiled cocoon 2.
* I have read the posted information about jetty and cocoon2.
* I'm  running jetty4 from cvs sources.

* The classpath configuration is as follows:

rem ===========================================================
rem == set CLASSPATH
rem ===========================================================
echo ..Set classpath
set CP=%JETTY_HOME%\lib\javax.servlet.jar  
set CP=%CP%;%JETTY_HOME%\lib\javax.servlet.jar
set CP=%CP%;%JETTY_HOME%\lib\org.mortbay.jetty.jar
rem set CP=%CP%;%JETTY_HOME%\lib\javax.xml.jaxp.jar
set CP=%CP%;%JETTY_HOME%\cocoon-lib\xercesImpl.jar    //from cocoon2 lib
set CP=%CP%;%JETTY_HOME%\cocoon-lib\xml-APIs.jar        // from cocoon2 lib
set CP=%CP%;%JETTY_HOME%\cocoon-lib\xalan.jar               // from cocoon2 lib
rem set CP=%CP%;%JETTY_HOME%\lib\org.apache.crimson.jar
set CP=%CP%;%JETTY_HOME%\lib\org.apache.jasper.jar
set CP=%CP%;%JETTY_HOME%\lib\
set CP=%CP%;%JAVA_HOME%\lib\tools.jar
set CP="%CP%"

* i have installed and unpacked cocoon2 in jetty/webapps

* the commandline arguments is as follows:


-cp %CP% org.mortbay.jetty.Server %ARGS% 

* when i start cocoon and acces it as "htttp://localhost:8080/cocoon/ " i get the following
respons in the browser

type fatal

message SAX2 driver class org.apache.xerces.parsers.SAXParser does not implement XMLReader

description java.lang.ClassCastException: org.apache.xerces.parsers.StandardParserConfiguration

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet


java.lang.ClassCastException: org.apache.xerces.parsers.StandardParserConfiguration
 at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
 at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
 at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(
 at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(
 at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(
 at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(




* see atached files for errorlogs.

View raw message