Hi Chris

my comment+++>>

-----Ursprüngliche Nachricht-----
Von: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Gesendet: Mittwoch, 27. März 2013 19:35
An: Tomcat Users List
Betreff: Re: AW: [tomcat 5.5.26] why are not all log4j.properties files parsed

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Josef,

On 3/27/13 9:51 AM, Stadelmann Josef wrote:
> -----Ursprüngliche Nachricht----- Von: Christopher Schultz 
> [mailto:ch...@christopherschultz.net]
>> 
>> I highly suspect that you have log4j.jar in either common/lib or 
>> shared/lib. In that case, your log4j will initialize only once, 
>> probably incorrectly.
> 
> +++ this is interessting. IA64-2>dir [.shared] Directory
> DKA3:[APACHE.JAKARTA.TOMCAT.shared] classes.DIR;1       lib.DIR;1 
> Total of 2 files. IA64-2>dir [.shared.classes] %DIRECT-W-NOFILES, no 
> files found IA64-2>dir [.shared.lib] %DIRECT-W-NOFILES, no files found 
> IA64-2>dir Directory DKA3:[APACHE.JAKARTA.TOMCAT.common]
> classes.DIR;1       endorsed.DIR;1      endorsed^.tar.gz;1
> i18n.DIR;1 lib.DIR;1 Total of 5 files. IA64-2>

Oh, crap: you're using VMS. I'm sure VMS is great, but directory listings are 
just incomprehensible garbage. Versioned files and directories... *eyeroll*...
+++>> if you use unix shell gnv/gnu bash it's not so hard to work with ... :-)


> we use this lib and classes directory in tomcat. it's here in lib 
> where log4j.jar is IA64-2>dir [.lib]*log4j* Directory 
> DKA3:[APACHE.JAKARTA.TOMCAT.common.lib] log4j-1^.2^.16.jar;1 Total of 
> 1 file. IA64-2> +++++

Yeah, that'll do it: log4j is probably only being initialized once because you 
have it in a shared location.
+++>> may I have to ask HAP - the one who did the OpenVMS port of Tomcat
+++>> the thing is that I've downloaded from a apache archive TOMCAT_5_5_26 but 
it's awfull to build it even on a PC with NetBeans.


>> If you want to use log4j in each web application, you should put a 
>> separate log4j.jar file in each webapp's WEB-INF/lib directory.
> 
> +++ we have done that ! there is a minor mismatch as tomcat - the
> oldest dir - has log4j-1.2.15.jarwhile the apps are all at 
> log4j.1.2.16.jar

It's not likely to matter.
+++>> that is what I think too.

> +++ note the observed behavior in parsing and later in logging is
> different if we use
> log4j.configuration=/path/to/tomcats/log4j.properties as JVM argument 
> from within NetBeans when we start tomcat.

Right: if you specify that, then log4j.properties will be loaded from a 
specific place. If you don't then log4j.properties will likely be loaded from 
an arbitrary webapps WEB-INF/classes directory.
+++>> but your saying that each webapps needs a log4j for logging and tomcat 
needs one as well !
So for tomcat I put it into /lib on PC and into /common/lib on OpenVMS
For each apps I put it into /WEB-INF/appsx/classes
But what I am interested most - where in tomcat code during startup are the 
log4j property files triggered to read


>> Are you also trying to use log4j for /Tomcat/ logging? If so, you  
>> have to do that differently as well. I'm not sure how well it works 
>> (or if at all) with Tomcat 5.5.
> 
> +++ yes - we really would like to do that

> in example I really need now HostCongig.java's log.debug to print out 
> when tomcat lifecycle event does a Reloading Context /axis2 ... 
> causing us tremendous troubles at the moment. Maybe we'r hacked 
> internally by some security folk.
??!

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJRUzvKAAoJEBzwKT+lPKRY/WgQALcyZlbQzixsClMwD7ppyigI
4A1jMfRQGqRI99l7v6qbYfMXjGkI17OMY/TO42avSungIYDxJ0t+VBDgd3DO5WHK
1pPO4XMxhcCdHGGGLwNasB+Z9bbsDsMUam3Sb81z3wVIMV7T+Ag96LEEseVZxJne
TjSE+kmR2d5wQEtk+jHkcB/PZtuY3yt2HZVWSDgW2D08Z0N6eK0wrengFbYzRzwa
pF62hYHWBRlUKGZ0ZrZdsrIkvrtmpjg1espw2G7CqL7dn1vRR5AVLeo2gVuBb8OD
ryMxzY891e1sXWCMerFmpgIXEmeFOruYIAVF3C8IfSEgZZ29PCTQ7kv7VjAvRLhz
gsTkdu1ZbWf4Y/gTqYmjCxZsnl7askjf6vhY8AHkncomqDXdHLjjslW2roGkFvn7
4U7t38iMonKNTgj6iOtotdIwBImdfc+AYTaXStot6V2d5mef/k758VyidCIMNJnA
Xo5SFbt/uAXeG3azTe5llaVKGNdrBt2r0H9D4AbG2lpSyqINU165XCsnbNHjvt79
U+KYOmO9Cu76t1iTnGKTHa4bEemvS7KH2d/8IZCGMaWy0MbvlbLVuhCtTqoOXJZZ
EXDNYLGGm0FR7K4O3M2LZzVdUr2uB85cnaCqjlzbcd6M8g2Oof2YGWbvg73KOz4q
ckv//4/e9bRQLjwYcAEu
=Njwq
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to