cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcelo F. Ochoa" <moc...@exa.unicen.edu.ar>
Subject How to Configure OWSKiller/Cocoon under Sun Java WebServer 2.0
Date Fri, 10 Mar 2000 14:25:15 GMT
Hi everybody:
  Here Step by Step instruction of How to Install OWSKiller3.0.4i-Cocoon-Prod and Cocoon 1.7
under Sun JavaWebServer 2.0

Resources: 
  Sun Java Web Server: http://www.sun.com/software/jwebserver/index.html 
  Cocoon: http://xml.apache.org/ 
  OWSKiller: http://owskiller.penguin.cz/ or http://www1.exa.unicen.edu.ar/cgi-bin/wrap/mochoa/OWSKiller/

 
1. Install Sun JavaWebServer 2.0 
   <server_root> stand for Sun Java WebServer main directory installation.
   <cocoon_root> stand for Apache Cocoon main directory installation.
   <owskiller_root>  stand for OWSKiller main directory installation.              
                                            
 
2. Unpack Cocoon libs under <server_root>/classes or add to CLASSPATH variable 
        # cd <server_root>/classes 
        # jar xvf <cocoon_root>/lib/ant.jar 
        # jar xvf <cocoon_root>/lib/fop_0_12_1.jar 
        # jar xvf <cocoon_root>/lib/stylebook-1.0-b2.jar 
        # jar xvf <cocoon_root>/lib/xalan_0_19_4.jar 
        # jar xvf <cocoon_root>/lib/xerces_1_0_1.jar 
        # jar xvf <cocoon_root>/lib/xml.jar 
 
2. Unpack JDBC classes under <server_root>/classes or add to CLASSPATH variable
        # cd <server_root>/classes 
        # jar xvf <oracle_home>/jdbc/lib/classes111.zip 
 
3. Unpack Cocoon Framework under <server_root>/servlets or add to CLASSPATH variable
        # cd <server_root>/servlets 
        # jar xvf <cocoon_root>/bin/cocoon.jar 
 
4. Unpack OWSKiller Engine under <server_root>/servlets or add to CLASSPATH variable
        # cd <server_root>/servlets 
        # jar xvf <owskiller_root>/OWSKiller.jar 
 
5. Start JavaWebServer 
        # <server_root>/bin/httpd 
 
6. With your favorite browser start admin applet, load the URL: 
        http://server:9090/index.html 
        or use script 
        # <server_root>/bin/admin  
   If you have just installed, type admin for user and password. Then login. 
 
7. Select Java Web Server -> Web Service 8080 and choose Manage. 
 
8. Press Servlets Button (upper right corner). 
 
9. Select "Add" in tree view. 
For Cocoon: 
  - Fill the boxs with this values: 
        Servlet Name: Cocoon 
        Servlet Class: org.apache.cocoon.Cocoon 
        Bean Servlet: No 
  - And Press button "Add" 
  Then with Configuration Pane: 
  - Fill the boxs with this values: 
        Description: Cocoon Framework 
        Servlet Class: org.apache.cocoon.Cocoon 
        Load at Startup: Yes or No. 
        Loaded Now: No 
        Load Remotely: No 
  Select Properties Pane: 
  - Press button "Add" 
  - Fill the boxs with this values: 
        name: properties 
        Value: <cocoon_root>/conf/cocoon.properties 
  - Press "Modify" and then "Save" 
For OWSKiller: 
  - Fill the boxs with this values: 
        Servlet Name: OWSKiller 
        Servlet Class: ows.OWSKiller 
        Bean Servlet: No 
  - And Press button "Add" 
  Then with Configuration Pane: 
  - Fill the boxs with this values: 
        Description: OWSKiller Engine 
        Servlet Class: ows.OWSKiller 
        Load at Startup: Yes or No. 
        Loaded Now: No 
        Load Remotely: No 
  Select Properties Pane: 
  - Press button "Add" 
  - Fill the boxs with this values: 
        name: propertiesfile 
        Value: <owskiller_root>/conf/OWSKiller.properties 
  - Press "Modify" and then "Save" 
 
10. Return to Setup area (press button "Setup" in upper left corner) 
  Select File Aliases in the tree view, and press "Add". 
  - Fill the boxs with this values: 
  Alias Pathname                Full Pathname 
  /xsl                          <owskiller_root>/xsl 
  /samples                      <cocoon_root>/samples 
  and press "Save" 
   
  Select Servlet Aliases in the tree view, and press "Add". 
  - Fill the boxs with this values: 
  Alias                         Servlet Invoked 
  *.xml                         Cocoon 
  /servlet/xml                  Cocoon 
  /servlet/xmld                 Cocoon 
  /servlet/plsql                OWSKiller 
   
11. Add to cocoon.properties this lines: 
########################################## 
# OWSKiller PLSQL Producer params 
# properties.plsql must be point to corrected OWSKiller.properties file !!! 
########################################## 
producer.type.plsql = ows.PLSQLProducer 
producer.properties.plsql = <owskiller_root>/conf/OWSKiller.properties 
 
########################################## 
# Header Processor, set this to work with cookies, redirect url and dymamic login 
########################################## 
processor.type.http = ows.HeaderProcessor 
 
########################################## 
# OWSKiller Excel Formatter, simple formatter to generate Excel output see PLSQL demo source
for details of usage 
########################################## 
formatter.type.application/vnd.ms-excel  = ows.ExcelFormatter 
 
12. Check <owskiller_root>/Readme.txt for OWSKiller.properties configuration tasks (JDBC
drivers, DADs, and so on) 
 
13. Restart Sun Java Web Server 
 
14. Check if Cocoon work fine: 
        http://server:8080/Cocoon.xml 
        Verify if there are entrys in Formatters (Excel Formatter) and Processor (HeaderProcessor)
        Samples at:
        http://server:8080/samples/index.xml 
15. Install PLSQL Packages in Oracle Data Base according to the instruction in <owskiller_root>/Readme.txt
and 
<owskiller_root>/Demos.txt (XML Demos Part) 
 
16. Check if OWSKiller work fine: 
        http://server:8080/servlet/plsql/demo.startup 
 
17. Enjoy OWSKiller-Cocoon 
 
Marcelo F. Ochoa (mochoa@exa.unicen.edu.ar) 

Mime
View raw message