tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Ross <>
Subject RE: Seeking authoritative answer re using Log4J with v6
Date Fri, 26 Jun 2009 18:40:44 GMT

> > I can't move log4j.jar to the system classpath, because then it 
> > will be visible to all webapps

> It was already visible to all webapps when the jar was in Tomcat's lib
> directory, so moving it 
> should not matter.  The local copies in WEB-INF/lib *should* be found
> before the system
> classloader is requested.  Note that in order to get individual use of
> log4j by a webapp,
> each must have its own log4j.jar and

According to the classloader
howto , the order is: system classloader, webapp classloader, common
classloader.  So I'll get a global RepositorySelector if I move log4j.jar to
the startup classpath.

View this message in context:
Sent from the Tomcat - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message