cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davor Cengija <dceng...@mcs.hr>
Subject How to install Cocoon with Resin 1.1.x
Date Mon, 30 Oct 2000 12:00:32 GMT
	Here's the brief explanation on how to install Cocoon (1.7.x
	and 1.8) with Resin 1.1.x and Apache 1.3.12 on Linux. Since
	this explanation will deal with resin.conf file only, it
	shouldn't be too hard to have Cocoon running with Resin on
	other platforms/servers or even on Resin's simple web server,
	srun.

	I tried this with RedHat 6.1 on Sparc, Mandrake 6.1 and
	Mandrake 7.1 on Intels.

Explanation start
-----------------
[0] - Install Resin in the way you like; I'm running it as an Apache
module (mod_caucho). Set the <app-dir>, <httpd-port>, <srun> and other
parameters in resin.conf. Make sure the servlet engine is working
correctly.
[1] - Open resin.conf file. In the <web-app id='/'></web-app> (or any
other id you find appropriate) add this (Cocoon 1.8, v1.7.x does not
have turbine-pool.jar):
--- start ---
       <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>
       <classpath id="/opt/web/cocoon/cocoon.jar" compile="false"/>
       <classpath id="/opt/web/cocoon/xalan.jar" compile="false"/>
       <classpath id="/opt/web/cocoon/xerces.jar" compile="false"/>
       <classpath id="/opt/web/cocoon/fop.jar" compile="false"/>
       <classpath id="/opt/web/cocoon/turbine-pool.jar" compile="false"/>
       <classpath id="/opt/java/jdk/lib/tools.jar" compile="false"/>
       <servlet-mapping url-pattern='*.xml'
                        servlet-name='org.apache.cocoon.Cocoon'/>
       <servlet-mapping url-pattern='*.fo'
                        servlet-name='org.apache.cocoon.Cocoon'/>
--- end ---
This will bind .xml and .fo files on Cocoon. Of course, change the
classpaths to suit your installation.
[2] - Edit cocoon.properties file and put it in your <app-dir>
directory, as specified in resin.conf (I have
<app-dir>/opt/web/htdocs</app-dir>)
[3] - Edit cocoon.properties and set processor.xsp.repository to point
to the right directory, use absolute path:
processor.xsp.repository = /opt/web/cocoon/repository
[4] - Restart your server. 
Put samples shipped with Cocoon under your server's directory
structure and open index.xml. You might also want to bind
index.xml to be default file for directories.
---------------
Explanation end

	If you (webmaster?) find this explanation valuable, please
	correct the grammar and put it on the web.

	Cheers
-- 
      v
Davor Cengija
dcengija@mcs.hr
===========================
"Nicht mit Alkohol mischen"


Mime
View raw message