I installed tomcat6 on lucid using the instructions here: https://help.ubuntu.com/10.04/serverguide/C/tomcat.html
(I didn't create an instance level version - the system level version was fine)
When I tried to start it up I got the following error in the log:
java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:216)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:391)
This was resolved by doing the following:
root@...:/var/lib/tomcat6# ln -s /usr/share/java lib
Why did I need to do this? Why doesn't it work out the box? (Why isn't this in the Ubuntu Manual on Tomcat?)