cocoon-users mailing list archives

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

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

I really appreciate your help.

Ling


>From: I-Chung Young <ichung@puma.mt.att.com>
>Reply-To: cocoon-users@xml.apache.org
>To: cocoon-users@xml.apache.org
>Subject: Re: cocoon-1.7.4 for Apache/Tomcat
>Date: Fri, 25 Aug 2000 18:41:40 -0400
>
>Hi,
>
>	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
>jakarta-tomcat/lib.
>
>2. Instead of using tomcat.properties, modify
>jakarta-tomcat/bin/tomcat.bat
>(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
>set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\cocoon.jar
>
>3. Follow the installation guide, put the following in
>jakarta-tomcat/conf/web.xml
>     <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>
>            cocoon.properties
>         </param-value>
>       </init-param>
>     </servlet>
>     <servlet-mapping>
>       <servlet-name>org.apache.cocoon.Cocoon</servlet-name>
>       <url-pattern>*.xml</url-pattern>
>     </servlet-mapping>
>
>4. Copy cocoon.properties 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/mod_jserv.so
>    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 tomcat.properties as in your original mail.
>
>Hope I didn't miss anything :(
>--
>Thanks.
>---------
>I-Chung Young            Email: iyoung@att.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: cocoon-users-help@xml.apache.org
>

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


Mime
View raw message