cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Dong" <>
Subject How to Set environment variable ?
Date Thu, 06 Jun 2002 08:42:35 GMT
Hi, sirs

the instructions of installing cocoon to tomcat4.0.4 below , that provided by apache group.

  1.. Build the Cocoon webapp as described above. 
  2.. Copy xml-cocoon2/build/cocoon/cocoon.war into tomcat/webapps directory. 
  3.. Set environment variable CATALINA_OPTS=-Djava.awt.headless=true 
  4.. Start Tomcat: Go to the tomcat/bin directory, and run the startup script. 
  5.. Open the Cocoon welcome page: http://localhost:8080/cocoon/ 
  6.. Congratulations! You should see the Cocoon welcome page.
The third Step, I did not know how to do it and I use win2000 pro. Because it have three segments

and in win2000 environment vairiable only has two segments, one is key and the other is value.

I did not do the third step, and I build cocoon has option target "installwar", and build
But when I browser httP://localhost:8080/cocoon/ , I got message below:

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(
What wrong I did?
Jack Dong

View raw message