You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Ducret, Gilles (CH)" <Gi...@LloydsBank.ch> on 2001/10/19 14:47:05 UTC

Installing Cocoon 1.8, in Visual Age 3.5

Hi everybody,

For those who are interested, i have successfully installed Cocoon 1.8 in
Visual Age 3.5
Development environment.

To do that you must:

1) Create an Open Edition of the IBM XML Parser (you must be administrator)

2) Create an Xerces project

3) Import the content of the xerces.jar file into the Xerces project. Some
of the elements
will be imported into the IBM XML Parser project (org.xml.sax)

4) Version both project

5) Open default.servlet_engine file and add a webapp for Cocoon, like this
   <websphere-webgroup name="cocoon">
       <description>Cocoon</description>
       <document-root>$approot$/web/samples</document-root>
       <classpath>$approot$/servlets$psep$$server_root$/servlets</classpath>
       <root-uri>/</root-uri>
       <auto-reload enabled="true" polling-interval="3000"/>
       <shared-context>false</shared-context>
    </websphere-webgroup>

6) In the hosts/default_hosts directory of the websphere test environment,
create a new directory
called cocoon, with two subdirectories: web and servlets.

7) In the servlets directory create a file named cocoon.webapp and copy the
following in it:
<?xml version="1.0"?>
<webapp>
   <name>cocoon</name>
   <description>Cocoon Web App</description>
   <error-page>/ErrorReporter</error-page>

   <servlet>
      <name>invoker</name>
      <description>Auto-registration servlet</description>
      <code>com.ibm.servlet.engine.webapp.InvokerServlet</code>
      <servlet-path>/servlet</servlet-path>
      <autostart>true</autostart>
   </servlet>

   <servlet>
      <name>cocoon</name>
      <description>Cocoon Servlet</description>
      <code>org.apache.cocoon.Cocoon</code>
      <servlet-path>/cocoon</servlet-path>
      <autostart>true</autostart>
      <init-parameter>
         <name>properties</name>
         <value>C:\cocoon-1.8.2\conf\cocoon.properties</value>
      </init-parameter>
      <init-parameter>
         <name>URIPaths</name>
         <value>default_host/cocoon</value>
      </init-parameter>
   </servlet>

   <servlet>
      <name>jsp</name>
      <description>JSP support servlet</description>
    
      <!--
 
<code>com.ibm.ivj.jsp.debugger.pagecompile.IBMPageCompileServlet</code>
      -->
      <code>com.ibm.ivj.jsp.runtime.JspDebugServlet</code>

      <init-parameter>
         <name>workingDir</name>
         <value>$server_root$/temp/default_app</value>
      </init-parameter>
      <init-parameter>
         <name>jspemEnabled</name>
         <value>true</value>
      </init-parameter>
      <init-parameter>
         <name>scratchdir</name>
         <value>$server_root$/temp/JSP1_0/cocoon</value>
      </init-parameter>
      <init-parameter>
         <name>keepgenerated</name>
         <value>true</value>
      </init-parameter>
      <autostart>true</autostart>
      <servlet-path>*.jsp</servlet-path>
   </servlet>

   <servlet>
      <name>file</name>
      <description>File serving servlet</description>
      <code>com.ibm.servlet.engine.webapp.SimpleFileServlet</code>
      <servlet-path>/</servlet-path>
      <init-parameter>
         <name></name>
         <value></value>
      </init-parameter>
      <autostart>true</autostart>
   </servlet>
</webapp>

8) Launch the Websphere Test Environment and clic on Edit Class Path

In the check boxes select the Xerces project.
In the Extra class path box, type the following paths:
C:\cocoon-1.8.2\lib\bsf.jar;
C:\cocoon-1.8.2\lib\bsfengines.jar;
C:\cocoon-1.8.2\lib\turbine-pool.jar;
C:\cocoon-1.8.2\lib\xalan_1_2_D02.jar;
C:\cocoon-1.8.2\lib\fop_0_15_0.jar;
C:\cocoon-1.8.2\bin\cocoon.jar

9) In the web directory, copy the content of the cocoon samples directory

10) You can now start the websphere test environment

You can get the Cocoon configuration by typing the following url:
http://localhost:8080/cocoon/cocoon.xml

Or the samples:

http://localhost:8080/cocoon/index.xml

Cheers

Gilles

Gilles Ducret
Wealth Management Division
IT Architect
Lloyds TSB Bank
Tel: + 41 22 307 31 50
Mob: +41 79 217 21 41



**********************************************************************
This E-mail and any files transmitted with it are confidential 
and intended for the exclusive use of the addressee(s) only.
 You should not disclose its contents to any other person. 
If you are not the intended recipient please notify the sender
immediately.
**********************************************************************