the rasx() context

I preach these Blues, then choose my seat and sit down.

Installing Tomcat

This is the command summary for installing Tomcat on Ubuntu Linux:

sudo apt-get install sun-java5-jdk

sudo apt-get install apache2
sudo apt-get install tomcat5
sudo apt-get install tomcat5-admin

Point Ubuntu to the newly installed Java JDK with:

sudo update-alternatives --config java

Select /usr/lib/jvm/java-1.5.0-sun/jre/bin/java.

Configure Tomcat for the Java JDK. Edit /etc/default/tomcat5 for this line:

JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun/

Review the users for Tomcat in /var/lib/tomcat5/conf/tomcat-users.xml. Here is one relatively terrible way to configure the default user, tomcat:

<user username="tomcat" password="foo" roles="tomcat,manager,admin" />

Start Tomcat with:

sudo /etc/init.d/tomcat5 start

Test for connectivity by browsing http://localhost:8180. You can change this port number by editing the standalone server service, Tomcat-Standalone, in /usr/share/tomcat5/conf/server.xml.

Much of this summary is based on “Setting Up Tomcat 5 on Ubuntu 6.06” here:

http://blixtra.org/blog/2006/07/14/setting-up-tomcat-5-on-ubuntu-606/

and “Installing Java 5 JDK and Tomcat on Ubuntu (using VMWare)” here:

http://www.spaceprogram.com/knowledge/2006/05/installing-java-5-jdk-and-tomcat-on.html

Share and Enjoy:
  • del.icio.us
  • Facebook
  • Technorati
  • Digg
  • Slashdot
  • Google Bookmarks

This entry was posted on Wednesday, October 4th, 2006 at 10:22 am and is filed under Data Management Solutions, root. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

12 Responses to “Installing Tomcat”

  1. blackrayne Says:
    October 19th, 2006 at 4:21 pm

    thank you thank you thank you lol this little tut was just what i need thanks again

  2. rasx() Says:
    October 20th, 2006 at 10:44 am

    much appreciation for the appreciation…

  3. Ramon Says:
    November 8th, 2006 at 8:17 am

    GREAT WALK THROUGH!. This is exactly what I needed and I am very happy to get it from you. Worked flawlessly, and only took about 5 mins!

  4. rasx() Says:
    November 8th, 2006 at 10:27 am

    yes!

  5. Jim Pinkham Says:
    December 8th, 2006 at 7:31 am

    Great guide – this helped me a lot.

    It was not obvious to me that when changing sources.list to add multiverse, it is necessary to run
    sudo apt-get update
    first, before
    sudo apt-get update sun-java5-jdk
    otherwise, you get
    E: Couldn’t find package sun-java5-jdk

  6. Andy’s Blog » Mmmmm Virtual Infrastructure.... Says:
    May 28th, 2007 at 2:00 pm

    [...] up and instantiated, for my needs (at least right now), all I have to do is to install Tomcat (good resource here) and re-jigger the config file to listen on port 80 (yea yea I know – I’ll be proxying to it, [...]

  7. Daeval Says:
    June 27th, 2007 at 7:31 pm

    This is approaching a year old now, but is still the best, most concise, and most functional tutorial I could find. It has the added bonus of avoiding the manual editing of .bashrc. Only minimal tweaks were necessary for Tomcat 5.5, Java6, and Ubuntu 7.04 Feisty. On the off chance you still read comments for this, Thanks!

  8. rasx() Says:
    June 28th, 2007 at 10:21 am

    Daeval: I appreciate the appreciation!

  9. Sean Says:
    December 25th, 2007 at 9:16 am

    It seems a bit curiosu to me that you install apache2 before tomcat. Correct me if im wrong, but Tomcat should be able to stand on its own 2 feet without installing apache, no?

  10. rasx() Says:
    December 26th, 2007 at 11:32 am

    Check out “Tomcat—A Minimalistic User’s Guide”: “Tomcat can be used as either a stand-alone container (mainly for development and debugging) or as an add-on to an existing web server (currently Apache, IIS and Netscape servers are supported).”

    Some server admins would prefer to open as few ports as possible—like port 80 running apache and then plugin other application servers (like Tomcat) into apache.

  11. Linita Says:
    January 19th, 2008 at 12:57 pm

    Hi! I have a problem.. I’ve installed and configured tomcat5.5 step by step, but I had two web app that I did on windows and there all works.. but when I copy it on my linux it doesnt works!!..

    thanx for your help

  12. Setting up some software in Ubuntu 6/7/8.0.x « Strictly Programming Says:
    December 8th, 2008 at 6:05 am

    [...] above info can be found : here [...]

Leave a Reply

Please leave a comment. Comments are encouraged but they must contain relevant details. These details are very helpful when they refer to exactly what the author has written. Any appeals to “common sense” with usage of phrases like, “this is stupid” or “you are so ignorant” will be ignored. Also, any quick blurbs like, “this is great” or “good job” will be reluctantly suppressed. See you later… without blindness.

the rasx() context is proudly powered by WordPress
Entries (RSS) and Comments (RSS).