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. http://docs.oracle.com/javase/6/docs/technotes/guides/standards/ 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. p > 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? -- [key:62590808]
signature.asc
Description: OpenPGP digital signature