Re: different config files for different tomcat applications

2006-08-17 Thread Takacs Bence
Well, I've tried, but I have some bugs... I deployed two applications, both with their own log4j.jar, and properties file, and I put an other to ${catalina.home}/common/classes, and ${catalina.home}/common/lib. It seems to be working except the following bugs: 1. INFO: Starting Servlet

Re: different config files for different tomcat applications

2006-08-17 Thread James Stauffer
On 8/17/06, Takacs Bence [EMAIL PROTECTED] wrote: Well, I've tried, but I have some bugs... I deployed two applications, both with their own log4j.jar, and properties file, and I put an other to ${catalina.home}/common/classes, and ${catalina.home}/common/lib. It seems to be working except the

Re: different config files for different tomcat applications

2006-08-17 Thread Jacob Kjome
To clarify for James, it is absolutely ok for log4j.jar to be in *both* common/lib and each app's WEB-INF/lib... at least in the case of Tomcat where it implements child-first classloading behavior. Child-first classloading makes it so that WEB-INF/lib/log4j.jar gets loaded in preference to any

Re: different config files for different tomcat applications

2006-08-15 Thread Takacs Bence
Try running with -Dlog4j.debug. That should give you more info about the problem. Where should I put this switch? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: different config files for different tomcat applications

2006-08-15 Thread Takacs Bence
No log4j.xml, and only the two log4j.properties: - one in the /tomcat/shared/classes for tomcat inner logs - one in the /tomcat/common/classes for tomcat applications logs I make both of them after the error message... Thanks: Bence Jacob Kjome wrote: Is there a log4j.xml anywhere on

Re: different config files for different tomcat applications

2006-08-15 Thread Takacs Bence
Takacs Bence wrote: Try running with -Dlog4j.debug. That should give you more info about the problem. Where should I put this switch? Maybe when I run Catalina? - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: different config files for different tomcat applications

2006-08-15 Thread James Stauffer
It is a command line option so that depends on how you run Tomcat. I put it in the Java tab of the Configure Tomcat applicaton. On 8/15/06, Takacs Bence [EMAIL PROTECTED] wrote: Try running with -Dlog4j.debug. That should give you more info about the problem. Where should I put this

Re: different config files for different tomcat applications

2006-08-15 Thread James Stauffer
I don't think it will work to have log4j.jar under webapps/app/WEB-INF/lib and expect those locations of log4j.properties to be used. You have 2 choices that I know will work: 1. Only have log4j.properties and log4j.jar under tomcat/shared or tomcat/common 2. Only have log4j.properties and

Re: different config files for different tomcat applications

2006-08-15 Thread Takacs Bence
1. Only have log4j.properties and log4j.jar under tomcat/shared or tomcat/common What do you mean 'or'??? Two directories for two different functions. One for tomcat 'inner' configuration (tomcat/common), and one for 'applications' configuration (tomcat/shared). As far as I know they are not

Re: different config files for different tomcat applications

2006-08-15 Thread James Stauffer
On 8/15/06, Takacs Bence [EMAIL PROTECTED] wrote: 1. Only have log4j.properties and log4j.jar under tomcat/shared or tomcat/common What do you mean 'or'??? Two directories for two different functions. One for tomcat 'inner' configuration (tomcat/common), and one for 'applications'

Re: different config files for different tomcat applications

2006-08-15 Thread Jacob Kjome
Quoting James Stauffer [EMAIL PROTECTED]: On 8/15/06, Takacs Bence [EMAIL PROTECTED] wrote: 1. Only have log4j.properties and log4j.jar under tomcat/shared or tomcat/common What do you mean 'or'??? Two directories for two different functions. One for tomcat 'inner' configuration

different config files for different tomcat applications

2006-08-14 Thread Takacs Bence
Hello James Stauffer wrote: I meant different config files. If you move the lib/log4j.jar and classes/log4j.properties from the shared classpath (i.e. tomcat/common) to each webapp (i.e. webapps/app/WEB-INF) then each app will use a separate config file. I deleted the common

Re: different config files for different tomcat applications

2006-08-14 Thread Takacs Bence
Well, sometimes neither of them writes the log, sometimes both of them uses the SocketAppender... As if in every tomcat restart it would have throw a dice... the only message: log4j:WARN No appenders could be found for logger (org.apache.commons.digester.D igester.sax). log4j:WARN Please

Re: different config files for different tomcat applications

2006-08-14 Thread James Stauffer
Did you move log4j.properties also? You will need to do that too. On 8/14/06, Takacs Bence [EMAIL PROTECTED] wrote: Hello James Stauffer wrote: I meant different config files. If you move the lib/log4j.jar and classes/log4j.properties from the shared classpath (i.e. tomcat/common) to each

Re: different config files for different tomcat applications

2006-08-14 Thread Takacs Bence
I _only_ moved log4j.properties from shared/classes to two different webapps/app/WEB-INF/classes directory. In other words I deleted the original file and made two different copies (with the required modifications of course). Both projects has it's own log4j.jar too. Thanks: Bence

Re: different config files for different tomcat applications

2006-08-14 Thread Takacs Bence
No James Stauffer wrote: Is there a log4j.jar under shared or common? On 8/14/06, Takacs Bence [EMAIL PROTECTED] wrote: I _only_ moved log4j.properties from shared/classes to two different webapps/app/WEB-INF/classes directory. In other words I deleted the original file and made two different

Re: different config files for different tomcat applications

2006-08-14 Thread James Stauffer
Try running with -Dlog4j.debug. That should give you more info about the problem. On 8/14/06, Takacs Bence [EMAIL PROTECTED] wrote: No James Stauffer wrote: Is there a log4j.jar under shared or common? On 8/14/06, Takacs Bence [EMAIL PROTECTED] wrote: I _only_ moved log4j.properties from

Re: different config files for different tomcat applications

2006-08-14 Thread Jacob Kjome
Is there a log4j.xml anywhere on the classpath (in the default package, that is)? Look in directories and jars. I would suggest changing to an XML config file because Log4j looks for it first. If it doesn't find log4j.xml, then it looks for log4j.properties. I've seen this happen so often to