The Coded One

programming, algorithms, discrete math, open-source

Posts Tagged ‘tomcat

Setting Up Tomcat on Ubuntu

with one comment

Prerequisites

Tomcat 6.0 requires JRE 5.0. Read the RELEASE-NOTES and the RUNNING.txt file in the distribution for more details.

Installation

1. Download binary core from apache site.

wget http://apache.tradebit.com/pub/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat-6.0.18.tar.gz

2. Extract the tarball under /usr/local/

Note: Locally installed software must be placed within /usr/local rather than /usr unless it is being installed to replace or upgrade software in /usr.

tar xvzf apache-tomcat-6.0.18.tar.gz

3. Tomcat requires that you set the JAVA_HOME variable. If you haven’t done it yet, you can do so by adding the following line in your .bashrc

export JAVA_HOME=/usr/lib/jvm/java-6-sun

4. We can test if Tomcat is running by running the startup script then opening a browser and accessing http://localhost:8080

sudo /usr/local/tomcat/bin/startup.sh

Details on troubleshooting can be found on RUNNING.txt

Read the rest of this entry »

Written by Mark Basmayor

March 2, 2009 at 5:37 pm

Posted in Java, Ubuntu

Tagged with , , , ,

Follow

Get every new post delivered to your Inbox.