I'm trying to enable the shared classloader on Tomcat 6.0.20 (Java 1.6.0_15 on Mac OSX 10.6). I've put this line in conf/catalina.properties: shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar
I've dumped a few dozen jars in the shared/lib directory. These are found when I start Tomcat, but the jars in a deployed WAR are not found. The problem manifests itself as a ClassNotFoundException on on org.hibernate.SessionFactory, which is located in the web app's WEB-INF/lib directory, and not the shared/lib directory. As a test, I added the web app's lib dir to the shared loader, like this: shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar,${catalina.base}/webapps/WorkList/WEB-INF/lib/*.jar That's obviously bad as an actual fix, but the app loads in that configuration. Any ideas? What I'd like is the shared class loader as a supplement to the webapp classloader. Many thanks for your help! Tim Berglund