I've faced with strange tomcat6 behavior. Tomcat uses jar files from both /usr/share/tomcat6/lib and /usr/share/java. It's not good for me because a also have installed maven and /usr/share/java contains few versions of each java library and some applications cannot start because they see all version of libraries.
How I can disable using of /usr/share/java by Tomcat6?
p.s. I use Ubuntu 13.04.