The only thing you need in your httpd.conf, if you are using Tomcat's
"autogen" function for mod_jk.conf, is this line:

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

I'm not sure what platform you are using, but I posted a howto for apache
1.3.26 + tomcat 4.0.4 + mod_jk here:
http://www.johnturner.com/howto/apache-tomcat-howto.html

In particular, step #10 of my How-to deals with the Listener directives,
which are responsible for generating the mod_jk.conf file (as far as I
know).

The system as built via the How-to is working for me, and the httpd.conf has
two differences from the original that was installed with apache: the
ServerName has been changed, and the Include directive has been added.

John Turner
[EMAIL PROTECTED]

-----Original Message-----
From: Scott Adamson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 15, 2002 12:09 PM
To: Tomcat Users List
Subject: Re: can't find mod_jk.conf


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" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
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
>
> [EMAIL PROTECTED]
> http://upe.com.au


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>




--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to