cocoon-users mailing list archives

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

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.

regards

//Jakob

* 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\com.sun.net.ssl.jar
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:
%JAVA_HOME%\bin\java 
-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl

-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl 
-Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl


-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

stack-trace

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(AbstractMarkupLanguage.java:377)
 at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:365)
 at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:328)
 at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:291)
 at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
 at java.lang.Thread.run(Thread.java:484)

request-uri

/cocoon/

path-info


* see atached files for errorlogs.

Mime
View raw message