I am forwarding you a revised version of a document I have been compiling for the installation of Apache Jakarta Tomcat. You'd be surprised how difficult it can be (ignore the "official" documentation: it lies, badly!) so this HOW TO has been written to ease the woes. It assumes you are installing Tomcat 3.0 or more on a Unix machine with Apache 1.3. The source and binary builds of tomcat can be downloaded from http://jakarta.apache.com and I suggest you grab both (name them jakarta-tomcat-src.tar.gz and jakarta-tomcat-bin.tar.gz). As usual, extract the binary to /usr/local/tomcat and the source to /usr/local/src/tomcat.

To perform a correct installation of tomcat you need to correct a couple of files and execute the %SRC_DIR%/jakarta-tomcat/src/build/do_build_apache1.3 script which recompiles Apache. You will need to make the following amendments to do_build_apache1.3:

1) swap occurrences of apjv12 for jserv
2) change the line referencing mod_jserv.c to point to %SRC_DIR%/jakart-tomcat/src/native/jserv.mod_jserv.c

Then, execute the following:

> export SRC_DIR=/usr/local/src
> export APACHE_HOME=/usr/local/apache

and then execute this script. If this script still fails, particularly if this script reports the error that jserv.h cannot be found then your can remedy this by copying the header file from its source location in /usr/local/src/jakarta-tomcat/src/native/apache/jserv/ to /usr/local/src/apache-1.3/src/modules/extra.

Once this has occurred perform the following copy command:

> cp /usr/local/src/jakarta-tomcat/src/native/apache/jserv/mod_jserv.so /usr/local/apache/libexec/