Your config is probably setup to write a file to the CD which is read-only.
On 5/24/07, Laxmilal Menaria <[EMAIL PROTECTED]> wrote:
Hello everyone, I am using Log4j for logging in my products. This is working fine on my hard drive, all logging are works. But if copied my application on CD/DVD then log4j gives exception, I want if log4j die then Application should works. I am getting the following exception while running on CD/DVD; log4j:ERROR setFile(null,true) call failed. java.io.FileNotFoundException: Logs\MyInfo.log (Access is denied) at java.io.FileOutputStream.openAppend(Native Method) at java.io.FileOutputStream.<init>(Unknown Source) at java.io.FileOutputStream.<init>(Unknown Source) at org.apache.log4j.r.a(Unknown Source) at org.apache.log4j.r.f(Unknown Source) at org.apache.log4j.s.f(Unknown Source) at myapplication.a<init>(Unknown Source) at myapplication.main(Unknown Source) Please suggest me.. -- Thanks, Laxmilal menaria http://www.minalyzer.com/ http://www.chambal.com/
-- James Stauffer http://www.geocities.com/stauffer_james/ Are you good? Take the test at http://www.livingwaters.com/good/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]