logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From renny.ko...@rubixinfotech.com
Subject Re: log4j:ERROR setFile(null,true) call failed.
Date Thu, 30 Nov 2006 13:11:34 GMT
Thomas

Do you have a "log" subdirectory under the 'current working directory' of
your web-app?  We find it best to give the full path, as we use Log4J in a
sumilar situation.

Renny Koshy
President & CEO

--------------------------------------------
RUBIX Information Technologies, Inc.
www.rubixinfotech.com


                                                                           
             "Thomas Thomas"                                               
             <debussy007@gmail                                             
             .com>                                                      To 
                                       log4cxx-user@logging.apache.org     
             11/30/2006 07:45                                           cc 
             AM                                                            
                                                                   Subject 
                                       log4j:ERROR setFile(null,true) call 
             Please respond to         failed.                             
              "Log4CXX User"                                               
             <log4cxx-user@log                                             
             ging.apache.org>                                              
                                                                           
                                                                           
                                                                           




Hi,

In my web application I have a "log4j.properties" in
"C:\UserTemp\crawlerdata\helloworld"
I have also a diretory "log" in "C:\UserTemp\crawlerdata\helloworld"

I have, in the file " log4j.properties", these lines :

# Path of the log-file
log4j.appender.file.File=log/myLog.log

But whern I run my program and when it executes this line :

PropertyConfigurator.configure(C:/UserTemp/crawlerdata/helloworld/log4j.properties);


I have the following exceptions, can someone help me please ?


[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R log4j:ERROR
setFile(null,true) call failed.
[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R
java.io.FileNotFoundException: log\regain.log (The system cannot find the
path specified)
[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R     at
java.io.FileOutputStream.openAppend(Native Method)
[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R     at
java.io.FileOutputStream.<init>(FileOutputStream.java:194)
[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R     at
java.io.FileOutputStream.<init>(FileOutputStream.java:122)
[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R     at
org.apache.log4j.FileAppender.setFile(FileAppender.java:282)
[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R     at
org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:165)
[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R     at
org.apache.log4j.FileAppender.activateOptions(FileAppender.java:161)
[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R     at
org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)
[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R     at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:132)

[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R     at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:96)

[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R     at
org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:654)

[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R     at
org.apache.log4j.PropertyConfigurator.parseCategory
(PropertyConfigurator.java:612)
[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R     at
org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:509)

[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R     at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:415)

[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R     at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:316)

[30/11/06 11:58:31:457 CET] 64899f05 SystemErr     R     at
org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:324)

[...]


Mime
View raw message