Book: "Professional Apache Tomcat 5"
I am having significant trouble getting mod_jk2 to compile based on the book's instructions (p. 242). I am compiling it on a linux machine running SuSE 9.0
- jakarta-tomcat-5.0.25 (binary download, as suggested in chapter 3)
I edited the jk/build.properties file and set "tomcat5.home=$CATALINA_HOME" and "apache2.home=/usr/local/apache2" (apache was compiled with dso).
$CATALINA_HOME is exported as /usr/local/java/tomcat in
For reference, java is /usr/local/java/java
Running ant from the top-level connector directory repeatedly gives "BUILD FAILED
Basedir /usr/local/src/apache/jakarta-tomcat-connectors-jk2-2.0.4-src/util does not exist"
I have tried creating that directory, but then it complains with another error.
I would love some help with this. I have been all over the internet trying to find out what is going on. This site (http://tinyurl.com/2d2we
) seems somewhat helpful, but it seems to use an entirely different method than your book (which also did not work).
How can I make this connector work?
After asking the authors and researching extensively I found this solution. The main question I have, is why I call tomcat 5 as tomcat-41. The book talked about ant and this has nothing to do with ant.
./configure --with-apxs2=$APACHE2_HOME/bin/apxs --with-java-home=$JAVA_HOME --with-tomcat-41=$CATALINA_HOME --with-jni
cp ./jk/build/jk2/apache2/mod_jk2.so $APACHE2_HOME/modules
cp ./jk/build/jk2/apache2/libjkjni.so $APACHE2_HOME/modules
# edit httpd.conf
# LoadModule jk2_module modules/mod_jk2.so