I am working on a few assignment for my MCA course and installed Tomcat on Ubuntu through the official repositories. However I had some trouble getting it to work and finally this guide worked.
Actually what we need to do is add this line to ~/.bashrc
You may also need to set permissions to enable normal users to write to /usr/share/tomcat5.5/webapps . Or just add the current user to the adm group.