logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sk k <skk7...@yahoo.com>
Subject Re: Antw: Problems with log4j properties loading
Date Tue, 22 Oct 2002 20:41:15 GMT

I tried with the changes on Solaris, namely using
-Dlog4j.configuration=file:./tmp/log.xml and it is
throwing another error but this worked fine on windows
NT

The following error is thrown as output:
-------------
java.io.FileNotFoundException: ./tmp/log.xml (A file
or directory in the path name does not exist.)
    at java.io.FileInputStream.open(Native Method)
    at
java.io.FileInputStream.<init>(FileInputStream.java:70)
    at
sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.jav
a:90)
    at
sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnect
ion.java:155)
    at java.net.URL.openStream(URL.java:813)
    at
org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:602
)
    at
org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConvert
er.java:460)
    at
org.apache.log4j.LogManager.<clinit>(LogManager.java:145)
    at
org.apache.log4j.Logger.getRootLogger(Logger.java:104)
     ......................

Anybody know the reason and a workaround.


--- sk k <skk7963@yahoo.com> wrote:
> 
> Thank you........ It solved the problem.
> 
> 
> --- Frank-Olaf Lohmann <Lohmann@hhla.de> wrote:
> > Hi,
> > 
> > use a URL for the file name, e.g.
> > -Dlog4j.configuration=file:./log4j.xml
> > 
> > Regards
> > Frank-Olaf Lohmann
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:  
> > <mailto:log4j-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> > <mailto:log4j-user-help@jakarta.apache.org>
> > 
> 
> 
> __________________________________________________
> 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>
> 


__________________________________________________
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