###Dependencies
Add export JAVA_HOME=/usr/lib/jvm/java-7-oracle
to ~/.bashrc
# Install tomcat
sudo apt-get install tomcat7
# It may be necessary to edit nano /etc/default/tomcat7 if you are
# getting JAVA_HOME errors. Uncomment the JAVA_HOME line