opensubscriber
   Find in this group all groups
 
Unknown more information…

u : users@tomcat.apache.org 11 September 2009 • 4:36PM -0400

Re: Shared jars
by Mark Thomas

REPLY TO AUTHOR
 
REPLY TO GROUP




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:
> 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.

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.

Mark




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomc...
For additional commands, e-mail: users-help@tomc...

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.