tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Eggers <>
Subject Re: jk2, apache2, tomcat5, on redhat 9 issue
Date Sun, 25 Jul 2004 18:21:04 GMT
I'm not sure what's "borked" with installing modules on Redhat since I
build everything myself.

Based on your error messages, it doesn't seem that the rpm's apxs is
finding everything correctly.

There have been several threads on this in the mailing list, so you can
search there as well.  If I recall correctly, you'll need to do the
following when you run configure for

1) cd to jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2
2) run configure with:

./configure --with-apxs2=$APACHE_HOME/bin/apxs \
            --with-tomcat41=$CATALINA_HOME \
            --with-apr-lib=<> \
            --with-jni \

where $APACHE_HOME is where apache is installed (although check to make
sure apxs is there), $CATALINA_HOME is where Tomcat is installed, and
<> is where is located.

JNI is the Java native interface so that UNIX sockets will work. You
will need to set JAVA_HOME to point to your J2SDK install.

Getting this to work is problematic on stock Redhat installs, because I
don't think the necessary libraries were linked into the stock httpd
server.  I think the reason that this was avoided was to reduce the
dependency list for httpd.

There have been a lot of discussions on how to fix UNIX socket
operations on stock Redhat installs.  Basically you have to modify
server/apache2/Makefile and add a line containing EXTRA_LDFLAGS with
several libraries.  You could also do:

export EXTRA_LDFLAGS=" . . . ."

where ". . . ." is the list of libraries before running configure.  I
don't recall the libraries right off hand, so you'll need to query the
mailing list archive.

Only add pcre if you have the Perl regular expression library installed
(most likely you do).

I'm not sure that httpd and httpd-devel install and  There are RPMs for those as well, so you might do the

rpm -q <rpm-name> --filesbypkg

where <rpm-name> would be the appropriate one for httpd or httpd-devel. 
Make sure that the libraries are there.  If they are not, then you'll
have to get the appropriate RPMs for apr and apr-util.
(starting with 2.0.4) require these libraries.

When those libraries are installed, make sure that they're in your
LD_LIBRARY_PATH.  The easiest way to do this is to create a file called
apache.conf in /etc/  There should be a line in it that
points to the directory where apr and apr-util live.  The run
/sbin/ldconfig as root to add the libraries.

Note - Only do the above if the libraries are not already in a path that
is included in the ldconfig configuration.

Once that is done, you should be able to run  Then you'll
get to configure it.  There have been many discussions on how to
configure mod_jk2, and several links have been posted to the mailing


just my two cents . . . .

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

View raw message