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
October 29th, 2009 - 15:32
Thx ! That’s is an easy and clear HowTo !
June 27th, 2010 - 13:54
Thank you very much. That was clear and concise.