Hi, sirs
the instructions of installing cocoon to
tomcat4.0.4 below , that provided by apache group.
Build the Cocoon webapp
as described above.
Copy xml-cocoon2/build/cocoon/cocoon.war
into tomcat/webapps
directory.
Set
environment variable CATALINA_OPTS=-Djava.awt.headless=true
Start Tomcat: Go to the
tomcat/bin directory, and
run the startup script.
Open the Cocoon
welcome page: http://localhost:8080/cocoon/
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 sucessful.
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
request-uri/cocoon/
path-info
stack-tracejava.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:536)What wrong I did?cheersJack Dong