tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Eggers <its_toas...@yahoo.com>
Subject Re: MOD_JK2 also Fails aaaggggg@###!!!
Date Fri, 02 Jan 2004 18:15:25 GMT
George,

This has been discussed on the list before.  While you
can use a vanilla RedHat 9 install, some of the
libraries (apr, apr-util) are not quite where the make
file thinks they should be.

There are several solutions.

1. Build apache 2.0.48 from source.

a) Note that on RedHat, the SSL libraries and includes
are not where the configure file expects.

export LDFLAGS=-L/usr/kerberos/lib

should solve that problem.

b) After building and installing Apache from source,
you then will need to install Tomcat - the binaries
will do fine.

c) Finally, download
jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz

d) Uncompress it and extract the tar file.

e) cd to
jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2

f) chmod u+x configure

g) 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

h) Run make

i) 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

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

k) Configure and restart

If you're using the default RedHat 9 installation, you
will probably have to tell configure where to find the
libraries.  Add the following to the ./configure
command.

--with-apr-lib=<directory>
--with-apr-include=<directory>

Please check the syntax by typing

./configure --help

2. If you do not want to approach this from source,
check out www.jpackage.org for RPMs of mod_jk and
mod_jk2.  I've not used these, so caveat emptor.

Once you get a connector built and installed, there
are several good resources for getting Apache and
Tomcat configured.

http://jakarta.apache.org/tomcat/faq/connectors.html
http://nagoya.apache.org/wiki/apachewiki.cgi?TomcatWeb

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

__________________________________
Do you Yahoo!?
Find out what made the Top Yahoo! Searches of 2003
http://search.yahoo.com/top2003

---------------------------------------------------------------------
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