Hi, I just wanted to report success in building the latest Jboss-Jetty 
and Cocoon 2.

I am new to using Java, but I wanted to share this as it appears to be 
quite different
from older mail-list configurations.

JBoss-2.4.3_Jetty-3.1.3-1, Cocoon-2.0
Rock Linux 1.5.12-DEV,  Sun 1.3.1 SDK

It is actually quite simple:

Step 1:

Install cocoon as a war in either jboss/deploy or jetty/webapps.

Or

Place the cocoon-x.x/webapp directory in jetty/webapps as cocoon and add

  <Call name="addWebApplication">
    <Arg>/cocoon/*</Arg>
    <Arg><SystemProperty name="jetty.home" 
default="."/>/webapps/cocoon</Arg>
    <Arg><SystemProperty name="jetty.home" 
default="."/>/etc/webdefault.xml</Arg>
  </Call>
Inside Configure tags of jboss/conf/jetty/jetty.xml .

Step 2:

Then copy from cocoon-x.x/lib to jboss/lib the following jars:
xerces-1.4.4.jar
xalan-2.2.0-D13.jar
xml-apis.jar
jstyle.jar

Step 3:
Add them to the jboss/bin/run.sh classpath before crimson.jar:

JBOSS_CLASSPATH=$JBOSS_CLASSPATH:../lib/xerces-1.4.4.jar
JBOSS_CLASSPATH=$JBOSS_CLASSPATH:../lib/xalan-2.2.0-D13.jar
JBOSS_CLASSPATH=$JBOSS_CLASSPATH:../lib/xml-apis.jar
JBOSS_CLASSPATH=$JBOSS_CLASSPATH:../lib/jstyle.jar

Step 4:
Run and test it. (Warning cocoon's welcome page from /cocoon appears to 
go to
/welcome instead of /cocoon/welcome so just use that URI instead.)

There is no need to delete any libraries from jboss or jetty with this 
version. I think
all cocoon demonstrations worked with this.

I hope this will be useful.

-Chris Hamilton


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to