this is the step by step execution on how to get apache2 working with tomcat5 on debian sarge (as of 07/20/2006). apache will be connecting via mod_jk to tomcat which are both running on sun's java 1.5.
this is not realy a tutorial, it's how to install in the debian way after your done reading other peoples tutorials. it convers how apt-get should be configured and which packages need to be updated/installed.
Sun Java 1.5 install
check configuration of /etc/apt/sources.list for java-package
upgrade initrd-tools to prevent kernel removal from libc6 upgrade. see prevent libc6 upgrade problems for details. [be sure to specify 'testing'].
upgrade initrd-tools to prevent kernel removal from libc6 upgrade. [be sure to specify 'testing'].
finally install sun's java (i use the fonts for pdf's)
i added JAVA_HOME to the default profile (whoopie)
export JAVA_HOME="/usr/lib/jvm/java-1.5.0-sun"
java 1.5 is now installed and configured in "the debian way".
Apache2 install
everything should install this easy, but we want Java 1.5 and TomCat5 so it's hardish.
TomCat5 install
install TomCat5 and friends (more details)
Mod_Jk install
be sure it install mod_jk not mod_jk2 as it is depricated
workers.tomcat_home=/usr/share/tomcat5
workers.java_home=/usr/lib/jvm/java-1.5.0-sun
if you have suggestions or comments, feel free to post them in our guest book.