tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Eggers <>
Subject mod_jk2 from source - brief HOW TO
Date Tue, 22 Apr 2003 19:02:25 GMT

I've seen a lot of questions concerning this, so I
finally had a go at compilation and installation.

This was done on a Redhat Linux (release 9.0) box, but
it should be pretty generic and useful for most
UNIX-type OS's.

I did not use rpm's for either the apache web server
(2.0.45 - compiled from source) or tomcat (4.1.24 -
installed from binary tarball).

I've only tested the network socket connection (ie.,
port 8009), but I don't see why the other
configurations wouldn't work as well.

>From a cursory glance at build.xml, it appears that
both the tomcat side and the web server side are being
built.  The first problem appears to happen when Ant
looks for tomcat-coyote.jar and can't find it.  Even
after that is corrected, Ant goes off and looks for
other things.

I'm just learning Ant at this point, so I'm not sure
what a good fix would be.

1. Download
jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz from

2. Uncompress it and extract the tar file.

3. cd to

4. chmod u+x configure

5. Run configure with:

   ./configure \
    --with-apxs2=<apache-root-directory>/bin/apxs \
    --with-tomcat41=<tomcat-root-directory> \
    --with-java-home=<java-root-directory> \
    --with-jni \

For example:

  ./configure --with-apxs2=/home/apache/bin/apxs \
	      --with-tomcat41=/home/tomcat \
	      --with-java-home=/usr/java \
	      --with-jni \

6. Run make

7. The two .so files ( and will be

8. Copy those to files to
<apache-root-directory>/modules with the
   proper permissions.

9. Configure Apache and Tomcat

10. Restart and enjoy

As always, I'm not a member of the Apache Software
Organization, but just a happy

Hmmm . . . . a happy sysadmin - now there's an

just my two cents . . . .

Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo

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

View raw message