Application cannot create log file in UNIX?

2012-06-20T15:55:32

I have developed a web project. Which is generating log file using log4j. But the same application is deployed in UNIX, it is not able to create log file also..
I'm new to unix. Why it is not creating log file? This is the code....

log4j.rootLogger = INFO,CA, FA

#Console Appender
log4j.appender.CA = org.apache.log4j.ConsoleAppender
log4j.appender.CA.layout = org.apache.log4j.PatternLayout
log4j.appender.CA.layout.ConversionPattern =  %d  %5p %c{1}:%L - %m%n

#File Appender
log4j.appender.FA = org.apache.log4j.FileAppender
log4j.appender.FA.File =correspondence.log
log4j.appender.FA.layout = org.apache.log4j.PatternLayout
log4j.appender.FA.layout.ConversionPattern = %d  %5p [%t] - %m%n

It is creating log file in server installation folder. But not creating in UNIX.. Any changes I have to do?

Copyright License:
Author:「Mr.Chowdary」,Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.
Link to:https://stackoverflow.com/questions/11115141/application-cannot-create-log-file-in-unix

About “Application cannot create log file in UNIX?” questions

I have developed a web project. Which is generating log file using log4j. But the same application is deployed in UNIX, it is not able to create log file also.. I'm new to unix. Why it is not cre...
I have a Unix server on which a continuously running application generates a large text log. (aprox. 100megs an hour). My main development machine is a Windows computer and to see what's going on...
Trying to to create a dataset with log file names and correspondig errors which contains 'ERROR:' in the log file.Log files are on UNIX and i want to access that unix path on SAS and search for 'ER...
I am learning ZF2 and trying to set up a restful web services architecture using ZF2. I am having a problem creating log file. Here's my module configuration: 'service_manager' => array( '
I created Java application (GUI) running on Windows that interacts over SSH with SQL DB configured on one Unix server, in my application i have several "print" messages as debug info to help analyz...
I'm developing web application which has commons-logging.jar and for logging log4j.jar. I got the following message when server start up. log4j:WARN No appenders could be found for logger (org.
I need the count of records of a data base table from unix. I am calling one sql script from unix and need the record count to any log file .
According to FSH UNIX Sockets shall be created in /run (or on legacy distros in /var/run). I am trying to create a socket in a non-root application in that directory and get error 13. Is /run only ...
I already checked the app, and everything seams to be fine (code and app config wise), also the server, database are ok, in the logs I got to this error, I already looked at this Nginx cannot find ...
I am trying to use logback.xml for my project and for development i am using windows env and for deployment i am using unix env so i have created below xml file. However when my application start...

Copyright License:Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.