Tim Berglund wrote:
> 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:
> 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:
> 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.
At a guess, something in shared depends on hibernate. The shared loader
is visible to the web app but the web app loader is not visible to shared.