Tomcat (v4.1.24) Install HowTo

Author:  David S. Helmuth <dave@helmuth.net>

Contributor:
  Thanks to Tom G. May for pointing out a few VERY important items that I missed.  

Release supported: e-smith 4.x, SME 5.x
License: GPL
Last updated: Friday, April 25, 2003 06:17 AM

 

Problem:  You need to install and use a server that can support Java Servlet and Java Server Pages.

Solution:  Initial HowTo for Apache Tomcat

What is Tomcat: Please see http://jakarta.apache.org

What You Get: A VERY basic installation of Tomcat.  It has NOT been integrated into Apache yet.  (Link for that is at the bottom of the page.)

Color/table conventions: 

White text/Black background indicates these are commands that should be executed at the command line.

White text/gray background indicates the information should be place in a text file

Server Manager Setting 

SME Server Manager Screen Name
Setting Value
??? ???

STEP 1:  Follow this HowTO for installing the Sun JDK (Java Development Kit). 


STEP 2:  Install the following rpm's...

rpm -Uvh http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.24/rpms/tomcat4-4.1.24-full.2jpp.noarch.rpm 
rpm -Uvh http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.24/rpms/tomcat4-admin-webapps-4.1.24-full.2jpp.noarch.rpm
rpm -Uvh http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.24/rpms/tomcat4-webapps-4.1.24-full.2jpp.noarch.rpm

Note:  Note that the rpm's are now package much better, than they were before, so it is much easier to load them than it was before.

Also, I have dropped off the links to the documentation etc.  Please see the Tomcat Home Page for up to date information.


STEP 3:  Edit the tomcat.conf.

pico /etc/tomcat4/tomcat4.conf

At the end of the file is an area where you can configure the environment for Tomcat4.
# If you wish to further customize your tomcat environment,
# put your own definitions here
# (i.e. LD_LIBRARY_PATH for some jdbc drivers)
# Just do not forget to export them :)

insert the following line:

ulimit -s 2048

When you are done, it should look like:
# If you wish to further customize your tomcat environment,
# put your own definitions here
# (i.e. LD_LIBRARY_PATH for some jdbc drivers)
# Just do not forget to export them :)

ulimit -s 2048

Note:  Please refer to: http://java.sun.com/j2se/1.3/relnotes.html for further information.  Also, you may notice that we no longer have to set the path to the JDK, that is because if you follow the updated JDK installation Tomcat now examines /etc/java/java.conf to find out where the JDK is.


STEP 4:  Add Tomcat to the start-up processes.

/sbin/chkconfig --add tomcat4


STEP 5: Add Tomcat to the run control that SME uses by default. (RC 7)

ln -s /etc/rc.d/init.d/tomcat4 /etc/rc.d/rc7.d/S80tomcat4


STEP 6: Start it up!

service tomcat4 start


Integration w/Apache HowTo:  http://www.helmuth.net/mitel-sme/Tomcat/tomcat-v4.0_Apache-howto.htm

Please note that the above link is to a HowTo that is still VERY much under construction.  

To-do's: (Not necessarily in order of importance)

Enjoy!