• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Cocoon throws exception after install

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've had a difficult time getting Cocoon to work in spite of the careful instructions on the Cocoon site < http://cocoon.apache.org/2.0/installing/index.html >
The step-by-step instructions didn't quite fit my scenario. For posterity, and so I feel a little better about the loss of time getting it to run, here's how I got Cocoon to work:
 
Sean Harrison
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
{oops. I posted the message before it was complete. Now continuing...}
The components involved were:
Cocoon 2.0.4
RedHat Linux kernel version 2.4.7-10
JDK 1.3.1_04
Tomcat 4.0.4
After downloading the binary release (I did not build from sourc
e), adding the cocoon.war file and restarting Tomcat, I got the following error:
Cocoon 2 - Internal server error
SAX2 driver class org.apache.xerces.parsers.SAXParser does not implement XMLReader
java.lang.ClassCastException: org.apache.xerces.parsers.StandardParserConfiguration
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
etc. etc.
I followed these steps to get Cocoon (and Tomcat) to use the necessary parsers:
1) Stopped tomcat
2) removed 2 jar files from /var/tomcat4/common/lib/:
xalan.jar
xercesImpl.jar
3) copied 4 jar files from /var/tomcat4/webapps/cocoon/WEB-INF/lib to /var/tomcat4/common/lib:
batik-all-1.5b2.jar
xalan-2.3.1.jar
xercesImpl-2.0.0.jar
xml-apis.jar
NOTE: these files were available because Tomcat had previously exploded the cocoon.war file for me.
4) Added the following line to the startup script at /usr/bin/dtomcat:
CLASSPATH="$CLASSPATH":"$CATALINA_HOME"/common/lib/xercesImpl-2.0.0.jar:"$CATALINA_HOME"/common/lib/xalan-2.3.1.jar:"$CATALINA_HOME"/common/lib/xml-apis.jar:"$CATALINA_HOME"/common/lib/batik-all-1.5b2.jar
5) Restarted Tomcat
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic