If all their libraries are in WEB-INF/lib, and log4j.xml is in WEB-INF/classes (and you have ensured that the log file being pointed to is unique in each application's log4j.xml), and there is no code performing manual configuration, I don't see how it is possible for all apps to log to the same file, unless...
You say this is under Tomcat? Can I presume this is a pure Tomcat, not Tomcat as part of JBoss or some other parent container? If this is indeed pure Tomcat, then there is pretty much no way for the behavior you see to happen. If this is some derivation of Tomcat that has the classloading behavior modified, then it might be possible that the usual child-first classloading is not in force. If parent-first is used and log4j.xml is found in a parent classloader, then it would be used instead of the one you think you are using. Have you tried using?... -Dlog4j.debug=true That should show you which config file is being loaded. Beyond these possibilities, I'm at a loss to explain the behavior you see. Jake On 5/25/2010 12:35 AM, G.Cholakov wrote: > >> When you say they all use the "same library", do you mean each has its own > copy in >> WEB-INF/lib or do they share it by placing it in a shared classloader, >> such as >> CATALINA_HOME/lib or CATALINA_HOME/shared? > > I mean they all have their libraries in WEB-INF/lib. > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
