tomcat-users mailing list archives

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

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
  
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.2/src/

2. Uncompress it and extract the tar file.

3. cd to
jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2

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 \
    --with-pcre

For example:

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

6. Run make

7. The two .so files (mod_jk2.so and jkjni.so) will be
in:
  
jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/jk2/apache2

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
user/developer/sysadmin.

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

HTH
/mde/
just my two cents . . . .

__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message