Ubuntu Tutorials Copy/Paste tutorials for Ubuntu

22Oct/092

Installing Tomcat 6 on Jaunty

Apache Tomcat is a servlet container developed by the Apache Software Foundation (ASF). Tomcat implements the Java Servlet and the JavaServer Pages (JSP) specifications from Sun Microsystems, and provides a "pure Java" HTTP web server environment for Java code to run.

1. Install all required packages

sudo apt-get install tomcat6 tomcat6-admin tomcat6-examples

Tomcat depends on a lot of other packages and the package manager will take care of that

2. Make sure the service is responding by entering url similar to this one in a browser:

http://{ipaddress}:8080/

Replace {ipaddress} with the ip address of your server

3. Create user and roles for the manager app. Replace the contents of your current file with something like this: (sudo pico /etc/tomcat6/tomcat-users.xml)

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="manager" />
<role rolename="tomcat"/>
<user username="{username}" password="{password}" roles="tomcat,manager"/>
</tomcat-users>

Replace {username} and {password} with credentials of your choice.

4. Restart Tomcat

sudo /etc/init.d/tomcat6 restart

5. Enter the manager app with a browser

http://{ipaddress}:8080/manager/html

You can browse the examples using this location: http://{ipaddress}:8080/examples

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • email
  • LinkedIn
  • Live
  • Netvibes
  • Netvouz
  • PDF
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Tumblr
  • Twitter
  • Yahoo! Bookmarks
Comments (2) Trackbacks (0)
  1. Thx ! That’s is an easy and clear HowTo !

  2. Thank you very much. That was clear and concise.


Leave a comment


Spam Protection by WP-SpamFree Plugin

No trackbacks yet.