tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid <>
Subject Re: Endorsed directory classloader
Date Tue, 10 Jan 2012 09:18:26 GMT
On 10/01/2012 00:47, Ryan wrote:
> Hi-
> I've got single Tomcat instance with 10 different webapps deployed. I'm in
> the process of converting the webapps logging from using Tomcat's JULI via
> java.util.logging to SLF4J, initally backed by log4j.
> I've run into a classloader problem due to my usage of the endorsed/
> directory: we place 2 jars in the endorsed/ dir so that the classes
> contained within are shared across webapps. 

Endorsed is for overriding classes supplied in the JDK.

If you want to share JARs (why do you want to do that?) between webapps
in Tomcat 6.0.x you just need to put them in tomcat/lib.


> However, now that these classes
> depends on SLF4J class initialization fails since the SLF4J classes are not
> found on the classpath. I have attempted to put the required jars in:
> ${catalina.base}/lib, ${catalina.home}/lib and the endorsed/ directory
> itself, and each time the dependent classes fail to load due to an
> inability to locate the org.slf4j classes.
> What do you recommend I do to make the slf4j jars available to the classes
> within the endorsed/ directory?



View raw message