Tomcat 6 Directory Locations on Ubuntu Server 11.04
I started playing around with Ubuntu Server on a locally created virtualbox virtual machine today and used aptitude to install tomcat 6.0.28. Being used to the implementation one downloads directly from the Apache Software Foundation, quite a few minutes were spent figuring out where files were placed. Below are the locations for folks spending time searching the web to find out things like where the webapps directory is on Ubuntu Server 11.04 or where the tomcat6 access logs might be located.
Default Installation Paths
Binaries and Libs: /usr/share/tomcat6 (although libs are symlinked to /usr/share/java and some jars inside the bin directory get symlinked to /usr/share/java as well)
System start/stop/status script: /etc/init.d/tomcat6.
The default webapps directory location is under /var/lib/tomcat6/
Configuration files are under /etc/tomcat6/
I haven't given it a try yet but I prefer storing java options inside a setenv.sh script but the /etc/init.d/tomcat6 doesn't have any reference to setenv.sh like /usr/share/tomcat6/bin/catalina.sh does, so it will be interesting to see whether enabling jmx via setenv.sh will work or if I'll need to modify /etc/init.d/tomcat6.