Title: Message
I'm running JBoss 2.4.4 with embedded Tomcat 4.0.1 on W2K. Using today's snapshot I followed your instructions, however I re-built the "cocoon.war" replacing the javac.jar with tools.jar since JBoss deploys and destroys the "war" in a tmp directory. In any case, when I start JBoss (and Catalina) I get the following output from the startup output. I also followed tried the install instructions regarding JBoss 2.4.4 and Tomcat 4.0.1, but I get the same problem. 
 
In any case, I am able to bring up the welcome page with "http://localhost:8080/cocoon", however I'm not sure if everything is running as it should.
Anyone know what this means?
 
Thanks,
Rick
 
[INFO,EmbeddedCatalinaServiceSX] StandardWrapper[/cocoon:invoker]: Loading container servlet invoker
 
[INFO,EmbeddedCatalinaServiceSX] invoker: init
[INFO,EmbeddedCatalinaServiceSX] jsp: init
[ERROR,EmbeddedCatalinaServiceSX] StandardContext[/cocoon]: Servlet /cocoon threw load() exception
javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3267)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)
<snip>
 
[ERROR,EmbeddedCatalinaServiceSX] ----- Root Cause -----
java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
        at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
        at org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:183)
        at org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCache.java:165)
<snip>


-----Original Message-----
From: Matt Williams [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 9:15 PM
To: [EMAIL PROTECTED]
Subject: HOWTO: jdk1.4

Hi,
Sorry I havent introduce myself, I will do so when im not so tired ;-)
 
Those wanting to use cocoon2 on windows with jdk1.4 do the following:
- Download Tomcat Binary(LE) and "install"
- Download Cocoon Binary and copy cocoon.war to $CATALINA_HOME/webapps
- Launch Tomcat
- When the WAR has been extracted Shut Tomcat Down
- make a directory 'endorsed' in $JAVA_HOME/jre/lib
- copy xerces,xalan,xml-apis from $CATALINA_HOME/webapps/cocoon/WEB-INF/libs to the endorsed directory
- copy batik-libs,xerces,xalan,xml-apis from $CATALINA_HOME/webapps/cocoon/WEB-INF/libs to $CATALINA_HOME/common/libs
- remove javac from $CATALINA_HOME/webapps/cocoon/WEB-INF/libs
- copy $JAVA_HOME/lib/tools.jar to $CATALINA_HOME/webapps/cocoon/WEB-INF/libs
- clear out everything under $CATALINA_HOME/work/localhost
- start tomcat
- buy me a beer
 
Those wanting to use cocoon2 on *nix with jdk1.4 do the following:
- Do the same as the windows guys are doing
- edit catalina.sh in the $CATALINA_HOME/bin directory and add a line CATALINA_OPTS='-Djava.awt.headless=true'
- start tomcat
- buy me 2 beers
 
 
Can someone with commit access to the cvs add that headless stuff
 
 
Thanks,
 
Matt
 
Oh yeah, this works on the latest releases of cocoon and tomcat (2.0.1 and 4.0.3 atm). that java.awt.headless=true thing is really important for *nix users, so someone please add it to the INSTALL text.
I recommend using the light edition of tomcat, because its less to worry about. if you use the full version then you will need to screw around with extra JARs

Reply via email to