Tomcat

Documentation on tomcat can be found at http://tomcat.apache.org

Installing on Debian

You should install the following APT packages:
  • tomcat6
  • tomcat6-admin
  • tomcat6-examples (optional)
  • tomcat6-docs (optional)
Your server will start automatically and listen on port 8080.

Configuring the Manager Servlet

On your virtual server, edit the file /etc/tomcat/conf/tomcat-users.xml and add give yourself the 'manager' role:


<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
  <user username="ryanne" password="secret" roles="standard,manager"/>
</tomcat-users>


Make sure you use a real password so that other students can't steal your code.

Then restart tomcat as follows:


# /etc/init.d/tomcat6 restart

Now you should be able to point your browser at http://virtualNN.cs.missouri.edu:8080/manager/html and login.  The manager webapp will allow you to upload and deploy WAR files, such as sample.war.  Tomcat will serve your WAR file at a URI based on the name of the WAR file.  For example, sample.war will get deployed to http://virtualNN.cs.missouri.edu:8080/sample 



Comments