cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Bernhardt <mbernha...@swsgmbh.de>
Subject Re: Installation Problem under Linux
Date Thu, 01 Mar 2001 09:48:36 GMT
I have it working under linux.

I have SuSE 7.0 with cocoon running.
I have not installed the SuSE jakarta package, but downloaded
tomcat 3.2 and installed under /usr/local/jakarta/tomcat.
I am using mod_jk

Theres an excellent howto:
http://tecfa.unige.ch/guides/xml/cocoon/install-notes-18.html
Follow steps 1 to 8 and you are ready.
It is written for Solaris but works perfect for linux.

ciao
Markus

Hail Eris! All Hail Discordia! Kallisti!
Setting Orange, day 60 of the Season of Chaos, YOLD 3167
www.discordian-Front.de
[dF]Quisam


Take a look at some snippets from my config files:

#####################################################################
## httpd.conf -- Apache HTTP server configuration file
##
### Section 1: Global Environment
...
...
### Section 2: 'Main' server configuration
...
...
<Location /WEB-INF/ >
    AllowOverride None
    Deny from all
</Location>
JkWorkersFile /usr/local/jakarta/tomcat/conf/workers.properties
JkLogFile     /usr/local/jakarta/tomcat/logs/mod_jk.log
JkLogLevel    debug
#################################################
# If you dont have virtual hosts enable next lines
# and leave section 3 blank
# JkMount /*.xml ajp13
# JkMount /*.jsp ajp13
#################################################

### Section 3: Virtual Hosts
NameVirtualHost 213.217.4.28
<VirtualHost 213.217.4.28>
    ServerName pensacola.markus-bernhardt.de
    DocumentRoot /usr/local/httpd/homepages/pensacola/htdocs
    ErrorLog /var/log/httpd/pensacola.markus-bernhardt.de-error_log
    CustomLog /var/log/httpd/pensacola.markus-bernhardt.de-access_log
common
    JkMount /*.xml ajp13
    JkMount /*.jsp ajp13
</VirtualHost>
<VirtualHost 213.217.4.28>
    ServerName www.travel-management-system.de
    ServerAlias www.travel-management-system.de
*.travel-management-system.de
    DocumentRoot /usr/local/httpd/homepages/tms/htdocs
    ErrorLog /var/log/httpd/www.travel-management-system.de-error_log
    CustomLog /var/log/httpd/www.travel-management-system.de-access_log
common
    JkMount /*.xml ajp13
    JkMount /*.jsp ajp13
</VirtualHost>
##
## httpd.conf -- Apache HTTP server configuration file
#####################################################################


#####################################################################
## workers.properties
##
workers.tomcat_home=/usr/local/jakarta/tomcat
workers.java_home=/usr/local/java1.3
ps=/
worker.list=ajp12, ajp13

worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp12
worker.ajp12.lbfactor=1

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp12, ajp13

worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)classes
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)jaxp.jar
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)parser.jar

worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)jasper.jar

worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)servlet.jar

worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)webserver.jar

worker.inprocess.class_path=$(workers.java_home)$(ps)lib$(ps)tools.jar

worker.inprocess.cmd_line=-config
worker.inprocess.cmd_line=$(workers.tomcat_home)/conf/jni_server.xml
worker.inprocess.cmd_line=-home
worker.inprocess.cmd_line=$(workers.tomcat_home)

worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)jvm.dll

worker.inprocess.stdout=$(workers.tomcat_home)$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)inprocess.stderr

worker.inprocess.sysprops=tomcat.home=$(workers.tomcat_home)
##
## workers.properties
#####################################################################


#####################################################################
## uriworkers.properties
##
# root - added IMPORTANT !!!!
/*.xml=ajp13
/*.jsp=ajp13

# Mount the servlet context to the ajp13 worker
/servlet/*=ajp13
##
## uriworkers.properties
#####################################################################


#####################################################################
## server.xml
##
<?xml version="1.0" encoding="ISO-8859-1"?>
<Server>
    ....
    <ContextManager debug="0" workDir="work" showDebugInfo="true" >
        ...
        <!-- Normal HTTP
        <Connector
className="org.apache.tomcat.service.PoolTcpConnector">
            <Parameter name="handler"
value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
            <Parameter name="port"    value="8080"/>
        </Connector>
        -->

        <!-- Apache AJP12 support. This is also used to shut down tomcat.

          -->
        <Connector
className="org.apache.tomcat.service.PoolTcpConnector">
            <Parameter name="handler"
value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/>
            <Parameter name="port"    value="8007"/>
        </Connector>

        <!-- Apache AJP13 support.
          -->
        <Connector
className="org.apache.tomcat.service.PoolTcpConnector">
            <Parameter name="handler"
value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/>
            <Parameter name="port" value="8009"/>
        </Connector>

        <Host name="pensacola.markus-bernhardt.de">
            <Context path=""
docBase="/usr/local/httpd/homepages/pensacola/htdocs" debug="0"
reloadable="true"/>
        </Host>
        <Host name="www.travel-management-system.de">
            <Context path=""
docBase="/usr/local/httpd/homepages/tms/htdocs" debug="0"
reloadable="true"/>
        </Host>
    </ContextManager>
</Server>
##
## server.xml
#####################################################################

Now i have in each docBases a WEB-INF directory with 2 files:
web.xml
cocoon.properties

#####################################################################
## web.xml
##
<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">

<web-app>
 <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>WEB-INF/cocoon.properties</param-value>
  </init-param>
 </servlet>

 <servlet-mapping>
  <servlet-name>org.apache.cocoon.Cocoon</servlet-name>
  <url-pattern>*.xml</url-pattern>
 </servlet-mapping>
</web-app>
##
## web.xml
#####################################################################

Hope this snippets will help you someway.



"Thomas P. Niesel" wrote:

> Hi everybody,
> I worked through the installation manual, FAQ's, an mailing list
> archives without finding an answer to this question:
> I am trying to run Cocoon 1.8.2 with Tomcat 3.2.1 under Linux (SuSE
> 7.0). I managed to get Tomcat to work with apache - no problem, but
> nor Cocoon.xml (404 not found) neither the index.xml fo the cocoon
> samples (given back unprocessed) is translated to html. It seems as
> if Tomcat dies not start cocoon at all.

Looks you have no connection between apache and cocoon.
- have you installed mod_jk
- have you configured mod_jk in /etc/httpd.conf

> I tried every posittion of
> xalan, xerces, cocoon in the classpath, I tried IBM JDK 1.3 and SUN
> 1.2.2 - simply everthing I could find in the docs (even cocoon 1.8 +
> tomcat 3.1). The mysterium is, that I can call cocoon from the
> commandline and it works.
> Is anybody out there who has a working configuration? What is to be
> done to get it running?
> Thanks in advance
>         Thomas P. Niesel
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>

Mime
View raw message