cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ling Wang" <>
Subject Re: cocoon-1.7.4 for Apache/Tomcat
Date Sat, 26 Aug 2000 04:50:55 GMT
I-Chung Young,

My goodness, it works! Thank you so much. Why they don't write clear 
document like you do?

I really appreciate your help.


>From: I-Chung Young <>
>Subject: Re: cocoon-1.7.4 for Apache/Tomcat
>Date: Fri, 25 Aug 2000 18:41:40 -0400
>	Based on your description, you seems to trying to install
>tomcat as in-process of Apache. i.e. let Apache starts tomcat.
>You could start from a easier installation by running tomcat
>separately. Let's try on step at a time.
>A. Tomcat only (Basically follow the installation guide on cocoon pages)
>1. Copied all the jar files from cocoon-1.7.4/lib into
>2. Instead of using, modify
>(make sure it is before xml.jar)
>set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\xerces_1_0_3.jar
>set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\xalan_1__0_1.jar
>set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\fop_0_12_1.jar
>set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\stylebook-1.0-b2.jar
>3. Follow the installation guide, put the following in
>     <servlet>
>       <servlet-name>org.apache.cocoon.Cocoon</servlet-name>
>       <servlet-class>org.apache.cocoon.Cocoon</servlet-class>
>       <init-param>
>         <param-name>properties</param-name>
>         <param-value>
>         </param-value>
>       </init-param>
>     </servlet>
>     <servlet-mapping>
>       <servlet-name>org.apache.cocoon.Cocoon</servlet-name>
>       <url-pattern>*.xml</url-pattern>
>     </servlet-mapping>
>4. Copy under jakarta-tomcat/webapps/ROOT
>5. Make sure you have JAVA_HOME environment defined if you want to use
>    XSP.
>6. restart Tomcat. You should be able to access Cocoon.xml with
>    http://localhost:8080/Cocoon.xml
>Now all xml pages under jakarta-tomcat/webapps/ROOT will be passed to
>Cocoon through Tomcat. You could copy the samples directory under
>cocoon to this directory then you should be able to access the
>example as well. I'll skip the context configuration.
>B. Apache+Tomcat (Assume you are not using Jserv currently)
>    (Mostly follow Tomcat's user guide)
>1. You will need special ApacheModuleJServ.dll. You can download
>    it from tomcat distribution directory. Copy it under Apache/modules
>2. Modify tomcat.conf
>    make sure this line is uncommented
>LoadModule jserv_module modules/ApacheModuleJServ.dll
>    and this is commented for NT platform
># LoadModule jserv_module libexec/
>    add this line
>AddHandler jserv-servlet .xml
>3. Modify apache/conf/httpd.conf
>    Add this line at the end of the file
>Include "D:/directory/to/jakarta-tomcat/conf/tomcat.conf
>4. Restart apache. You should be able to access Cocoon.xml with
>    http://localhost/Cocoon.xml (assume your apache use port 80)
>C. Apache auto start tomcat
>This one I haven't succeeded yet. I think there is a tomcat FAQ
>has information how to do that. If you go this path, then you need
>to modify as in your original mail.
>Hope I didn't miss anything :(
>I-Chung Young            Email:
>To unsubscribe, e-mail:
>For additional commands, e-mail:

Get Your Private, Free E-mail from MSN Hotmail at

View raw message