Configuring Apache Tomcat On Your UNIX Box.

I recently started working on writing a High Availability agent in the Sun Cluster.So one of the first steps i thought was to implement failover.I chose the Apache Tomcat web server for this.
I first downloaded JDK for the the java support it needed.I obtained the JDK package from the sun website for free.I then went to the Home page of Apache Tomcat, (by googling of course) and downloaded the apache tomcat.It was around 6 MB.I downloaded it to my Desktop.I then had to set my environment variables.

To set my environment variable for JRE_HOME, i ran the following

#export JRE_HOME

After running this command, type in env in the terminal, you will see an environment variable, JRE_HOME set to the path you specified.

Then i went into the apache folder ( which i had downloaded ) and ran the startup binary with the command

# sh

It ran without showing any errors and showed the following paths:

Using CATALINA_BASE:         /export/home/ohac/Desktop/apache-tomcat-5.5.27

Using CATALINA_HOME: /export/home/ohac/Desktop/apache-tomcat-5.5.27

Using CATALINA_TMPDIR: /export/home/ohac/Desktop/apache-tomcat-5.5.27/temp

Using JRE_HOME:                  /usr/jdk/jdk1.5.0_14


I then ran firefox, and typed in


and there was the page with the tomcat on it.So Apache, sucessfully configured!


~ by varun686 on June 8, 2009.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: