Setting up Tomcat
The following short tutorial walks you through the steps you need to take in order to
get Tomcat running on your Linux server.
Installing Java
In order to have Tomcat running
on your machine, you will need to have Java installed.
The cafba project and others will be built with
Java1.5 to be deployed on Tomcat5.5. If you dont have java 1.5 already installed
on your server, start by installing java on the server.
- Download the most recent jdk from java.sun.com
(preferably the rpm)
- execute the rpm, this will install the jdk to usr/java
- set a JAVA_HOME env variable in /etc/profile pointing to /usr/java/jdk1.5.0 (or wherever the jdk was installed)
- su to a valid user and execute java -version.
If java has been installed correctly, details of the available java
version will be presented.
Installing Tomcat
- Download the most recent tar files
from the Apache Jakarta Project.
- Extract the downloaded tar into the /var directory.
- rename the created directory to /var/tomcat
Execute the startup script (startup.sh) in /var/tomcat/bin
If you want to setup Tomcat to run as a
daemon, have a look for instructions in the jsvc-src folder.
Good luck!