logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sk k <skk7...@yahoo.com>
Subject Problems with log4j properties loading
Date Tue, 22 Oct 2002 13:42:17 GMT
Hi,

The log4j Configurator is not able to find my config
file for some reason. Don't know why?.

Here is the commandline 
java  -classpath
C:\log4j\log4j-1.2.6.jar;.;%CLASSPATH%
-Dlog4j.debug=true 
-Dlog4j.configuration=..\tmp\CustomLog4j.xml Test1

I have both tmp dir and CustomLog4j.xml file so don't
know why relative path is a problem but if I specify
full path to the xml prop
file(C:/tmp/CustomLog4j.xml), then it is works fine.

I also tried   
-Dlog4j.configuration=../tmp/CustomLog4j.xml, but it
doesn't work

Does log4j read relative path in canonical form. Pls
let me know.


Here is the output
------------------
1)
log4j: Trying to find [..\tmp\CustomLog4j.xml] using
context classloader sun.mis
c.Launcher$AppClassLoader@404536.
log4j: Trying to find [..\tmp\CustomLog4j.xml] using
sun.misc.Launcher$AppClassL
oader@404536 class loader.
log4j: Trying to find [..\tmp\CustomLog4j.xml] using
ClassLoader.getSystemResour
ce().
log4j: Could not find resource:
[..\tmp\CustomLog4j.xml].

2)
log4j: Trying to find [../tmp/CustomLog4j.xml] using
context classloader sun.mis
c.Launcher$AppClassLoader@404536.
log4j: Trying to find [../tmp/CustomLog4j.xml] using
sun.misc.Launcher$AppClassL
oader@404536 class loader.
log4j: Trying to find [../tmp/CustomLog4j.xml] using
ClassLoader.getSystemResour
ce().
log4j: Could not find resource:
[../tmp/CustomLog4j.xml].


__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>


Mime
View raw message