tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <>
Subject Re: mod_jk with Apache HTTP server version 2.2 and Tomcat 6.0
Date Thu, 01 Oct 2009 01:36:14 GMT

"André Warnier" <> wrote in message
> François Gravel wrote:
>> Greetings,
>> I'm a newbie trying my hand at setting up a local PHP and Java 
>> development
>> environment.  I use a laptop with Windows XP SP3.
>> Both service are running fine locally, after install.  I will describe 
>> what
>> I did as I followed the procedure to have mod_jk handle the communication
>> between them (from
>>  I 
>> got
>> the binary for Windows (
>> Then I created a file which I placed in a folder I
>> created at $TOMCAT_HOME/conf/jk; the file content is:
>> worker.list=worker1
>> worker.worker1.type=ajp13
>> worker.worker1.port=8009
> So far, so good.
>> I copied the file to $HTTPD_HOME/modules and
>> renamed it  It was suggested at this point to also modify
>> Apache's httpd.conf file.  I imagine that meant to add a line to have the
>> module loaded by Apache (I added "LoadModule mod_jk modules/").
> That's wrong, and probably the cause of the following messages.
> It should be :
> LoadModule jk_module modules/
>>  Doing this, however, leads to an intriguing message if you try to test 
>> the
>> configuration: "Can't locate API module structure 'mod_jk' in file
>> $HTTPD_HOME/modules/ No error."  Is it an error or not, I'm not
>> sure, but since I'm not done with the procedure, I keep going.
> Rectify the above, and then try again.  There may be other problems, but 
> solve that one first.
>> I then went through the steps to use Tomcat to auto-configure.
> As far as I remember, that is not a very good idea either anymore.  I 
> think I remember Rainer admitting that the mod_jk auto-configuration was 
> somewhat broken.

Yes, the auto-configure was written for Apache 1.3.x.  And even then, it is 
almost alway necessary to modify the output file by hand.  Nobody has felt 
the itch to get it to work with Apache 2.x, much less with newer versions of 
mod_jk.  The result is that this feature will be gone in Tomcat 7.

>   So I've
>> added the line "Include $TOMCAT_HOME/conf/jk/mod_jk.conf-auto" to the
>> file $HTTPD_HOME/conf/httpd.conf.
>> I also added the listener by way of the line "<Listener
>> className="org.apache.jk.config.ApacheConfig" modJk="/path/to/" 
>> />"
>> in the file $TOMCAT_HOME/conf/server.xml.
>> Then I re-started Tomcat to generate mod_jk.conf-auto: it is of note to
>> specify that the name of the file is "mod_jk.conf" and not
>> "mod_jk.conf-auto".
>> Finally, I modified the Apache webserver configuration file
>> $HTTPD_HOME/conf/httpd.conf to include the simple configuration example.
>> The end result being a failure to start the Apache 2.2 server: testing 
>> the
>> configuration reveals the same error listed above: "Can't locate API 
>> module
>> structure 'mod_jk' in file $HTTPD_HOME/modules/ No error."
>> Please, I've spent hours getting to this point, but I have no idea how to
>> get around this error.  Thank you,
> See above. 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message