The basic steps for installing Tomcat are:
- Download the tarball and unpack
- Compile the
jsvc stub. This is what starts and stops the server. Put the
jsvc binary in the
$TOMCAT_HOME/bin directory once you have it compiled.
- Borrow the
tomcat.sh script from the "build_apache" directory of Anlinux CVS for use in
- Set up Apache and Tomcat configuration files
There's a couple of Tomcat startup scripts located in the
jsvc tarball, you can use them to start/stop Tomcat via
/etc/init.d if desired.
The Tomcat docs talk about creating another user to run Tomcat as. Fair enough. The "Adding New Users/Groups" page has the particulars for adding new users/groups on Debian.
Here's a site that describes how to set up the JK proxy, as well as a blog post on how to set up Apache/Tomcat using AJP.
Building the Apache/Tomcat Native Connector
./configure --prefix=/usr/local/stow/tomcat-native-1.1.10 --with-apr=/usr/local/apache/bin/ --with-ssl=/usr/local --with-java-home=/usr/local