#Java and Tomcat6 on Ubuntu
Versions Tested: 10.04/11.10
##Web Apps Path:
/var/lib/tomcat6/webapps/
openssh-server
git-core vim ant maven2 tree
openjdk-6-jre-headless openjdk-6-jdk
tomcat6 tomcat6-admin tomcat6-common tomcat6-user tomcat6-docs tomcat6-examples
To enable admin web based features add the following lines to your /var/lib/tomcat6/conf/tomcat-users.xml
<role rolename="manager"/>
<role rolename="admin"/>
<user name="chris" password="yourpass" roles="manager,admin"/>
# sudo service tomcat6 restart
Rsync deployment example
sudo rsync -va /home/chris/Dev/WaterRestrictions/WaterRestrictions/war/ /var/lib/tomcat6/webapps/
sudo service tomcat6 start
# Start tomcat server
sudo /etc/init.d/tomcat6 start
# Stop tomcat server
sudo /etc/init.d/tomcat6 stop
# Restart tomcat server
sudo /etc/init.d/tomcat6 restart
# Get tomcat server status
sudo /etc/init.d/tomcat6 status
After installation type http://localhost:8080 or http://serverip:8080/examples/servlets/ in your browser.Now you should see tomcat welcome page