EnGarde Secure Linux - Installing Jakarta Tomcat with EnGarde HowTO

Introduction

This document contains the explanation of how to install the Apache Project's Jakarta Tomcat under EnGarde Secure Linux.

Requirements

Procedure

The first thing that has to be done is to obtain all the packages.

Now that you have all the packages, its time to install/upgrade. Don't forget to turn LIDS off while upgrading and installing packages. This can be accomplished by using the command:

[root@webserv /root]# lidsadm -S -- -LIDS_GLOBAL

Enter your LIDS password and LIDS is turned off.

These packages all depend on each other in one form or another, therefore they must be installed in the order listed below.

The first thing that needs to be installed is the Java 2 Software Development Kit v.1.4.1_01. Since we have the rpm, type the following command:

[root@webserv /root]# rpm -ivh j2sdk-1_4_1_01-1.0.i386.rpm

Ensure the JAVA_HOME and JAVACMD environment variables are set. This can be accomplished by typing the following command:

[root@webserv /root]# export | egrep '(JAVA_HOME|JAVACMD)'
declare -x JAVACMD="/usr/java/j2sdk1.4.1_01//bin/java"
declare -x JAVA_HOME="/usr/java/j2sdk1.4.1_01/"

If the environment variables do not exist, create them. The variable called JAVA_HOME should be set to the directory into which SDK was installed. If you used the command above to install the rpm, then your JAVA_HOME and JAVACMD environment variables should look as follows:

[root@webserv /root]# export JAVA_HOME='/usr/java/j2sdk1.4.1_01/'
[root@webserv /root]# export JAVACMD='/usr/java/j2sdk1.4.1_01/bin/java'

The second package to install is update-alternatives. This can be done in the following method:

[root@webserv /root]# rpm -ivh update-alternatives-1.8.3-5jpp.i386.rpm

Continue on with installing all the packages in the following order (Numbers 1 and 2 are completed at this point):

  1. Java 2 Software Development Kit v1.4.1_01
  2. update-alternatives v1.8.3
  3. xml-commons v1.0-0b2.4
  4. xml-commons-apis v.1.0-0b2.4
  5. xerces-j2 v2.2.1
  6. Ant v1.5
  7. Apache Jakarta Tomcat v4.1.18

Don't forget to turn LIDS back on once you are done with the installations.

To run tomcat type the following command:

[root@webserv /root]# /etc/init.d/tomcat4 start

To test the installation, point your web browser to http://<yourhost>:8080/.

Tomcat Resources

Jakarta Tomcat Homepage
http://jakarta.apache.org/tomcat/

Resources

EnGarde Mailing Lists:
http://www.guardiandigital.com/infocenter/community.html

EnGarde Linux Support FAQ
http://www.guardiandigital.com/infocenter/community.html

Acknowledgements

This document was written by Eric B. Lubow.