Jetty
Installation
apt-get install jetty
Jetty is installed in /usr/share/jetty directory.
Http Port
Jetty runs on ports 8280
Starting and Stoping
/etc/init.d/jetty stop
/etc/init.d/jetty start
/etc/init.d/jetty restart
Tomcat
Installation
apt-get install tomcat5 tomcat5-webapps tomcat5-admin
Tomcat is installed in the /usr/share/tomcat5 directory. Most of the directories in the /usr/share/tomcat5 directory are just soft links to the /var/lib/tomcat5 directory.
Security
When tomcat is installed using the debian packages it's started up with the -security option. The security option enforces the rules in /usr/share/tomcat5/conf/catalina.policy file which will cause the rife example webapps to not work when copied to the tomcat webapps directory. The quickest way to resolve this is to not startup tomcat with the security option. To do this set TOMCAT5_SECURITY=no in the tomcat start up script, /etc/init.d/tomcat5 and then restart tomcat.
Http Port
Tomcat runs on ports 8180
Starting and Stopping
/etc/init.d/tomcat5 stop
/etc/init.d/tomcat5 start
/etc/init.d/tomcat5 restart