You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Scott Adamson <sc...@sywaretech.com.au> on 2002/08/11 17:35:00 UTC

can't find mod_jk.conf

I have been trying to get Tomcat 4.04 to work with Apache (compiled
statically with mod_jk). According to the HOWTO on the Apache site
mod_jk.conf should be auto-generated with startup, it isnt. My guess would
be that there is some other configuration I need, but the HOWTO only seems
to mentions a 'workers.properties' file, which I created as instructed. Can
anyone help me with Tomcat 4 + Apache + mod_jk ? I would prefer to stick
with mod_jk (it already works with tomcat3.2.1) but I would consider using
other connectors.


Any help that anyone can offer would be much appreciated.

regards,

Scott Adamson
Systems Administrator
Syware Technology

scottadamson@sywaretech.com.au
http://upe.com.au


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: can't find mod_jk.conf

Posted by Scott Adamson <sc...@sywaretech.com.au>.
Ok, here is what I have done :

- compiled apache_1.3.19 with DSO support
(./configure --prefix=/usr/local/apache2 --enable-module=rewrite --enable-sh
ared=rewrite )

- added the following to httpd.conf:
    #
    # Load mod_jk
    #
    LoadModule jk_module libexec/mod_jk-3.3-ap13-noeapi.so
    #AddModule mod_jk.c

    # Configure mod_jk
    #
    JkWorkersFile /usr/local/jakarta-tomcat-4.0.4/conf/workers.properties
    JkLogFile /usr/local/apache2/logs/mod_jk.log
    JkLogLevel info


    Include /usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf

- copied mod_jk-3.3-ap13-noeapi.so to /usr/local/apache2/libexec

- added the following to server.xml :
    <Server port="8005" shutdown="SHUTDOWN" debug="0">
 <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
modJk="/usr/local/apache/libexec/mod_jk-3.3-ap13-noeapi.so" />

- created conf/workers.properties:
    workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4
    workers.java_home=/usr/java/jdk1.3
    ps=/
    worker.list=ajp12, ajp13
    worker.ajp13.port=8009
    worker.ajp13.host=localhost
    worker.ajp13.type=ajp13

mod_jk.conf is getting created, can someone verify this is correct ?
    <IfModule !mod_jk.c>
      LoadModule jk_module
/usr/local/apache/libexec/mod_jk-3.3-ap13-noeapi.so
    </IfModule>

apache/logs/error_log contains the following :

[Fri Aug 16 02:37:52 2002] [error] [client 192.168.0.7] File does not exist:
/usr/local/apache2/htdocs/examples/
 which indicates that it doesn't have a clue about tomcat.

Can anyone help with this, I have tried the supposed documentation suggested
and found it quite confusing and contridictory.

----- Original Message -----
From: "sibusiso xolo" <si...@b-vol.co.uk>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Wednesday, August 14, 2002 10:04 AM
Subject: Re: can't find mod_jk.conf


the best place to find out what to do is here:-

~/jakarta-tomcat-4.0.4/webapps/tomcat-docs/config/ajp.html
about halfway down the page under Using ApacheConfig

good luck

On Sunday 11 August 2002 15:35, Scott Adamson wrote:
> I have been trying to get Tomcat 4.04 to work with Apache (compiled
> statically with mod_jk). According to the HOWTO on the Apache site
> mod_jk.conf should be auto-generated with startup, it isnt. My guess would
> be that there is some other configuration I need, but the HOWTO only seems
> to mentions a 'workers.properties' file, which I created as instructed.
Can
> anyone help me with Tomcat 4 + Apache + mod_jk ? I would prefer to stick
> with mod_jk (it already works with tomcat3.2.1) but I would consider using
> other connectors.
>
>
> Any help that anyone can offer would be much appreciated.
>
> regards,
>
> Scott Adamson
> Systems Administrator
> Syware Technology
>
> scottadamson@sywaretech.com.au
> http://upe.com.au


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: can't find mod_jk.conf

Posted by sibusiso xolo <si...@b-vol.co.uk>.
the best place to find out what to do is here:-

~/jakarta-tomcat-4.0.4/webapps/tomcat-docs/config/ajp.html
about halfway down the page under Using ApacheConfig

good luck

On Sunday 11 August 2002 15:35, Scott Adamson wrote:
> I have been trying to get Tomcat 4.04 to work with Apache (compiled
> statically with mod_jk). According to the HOWTO on the Apache site
> mod_jk.conf should be auto-generated with startup, it isnt. My guess would
> be that there is some other configuration I need, but the HOWTO only seems
> to mentions a 'workers.properties' file, which I created as instructed. Can
> anyone help me with Tomcat 4 + Apache + mod_jk ? I would prefer to stick
> with mod_jk (it already works with tomcat3.2.1) but I would consider using
> other connectors.
>
>
> Any help that anyone can offer would be much appreciated.
>
> regards,
>
> Scott Adamson
> Systems Administrator
> Syware Technology
>
> scottadamson@sywaretech.com.au
> http://upe.com.au


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>