File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Linux / UNIX and the fly likes Application cannot create log file in linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Application cannot create log file in linux " Watch "Application cannot create log file in linux " New topic
Author

Application cannot create log file in linux

Maya sekar
Ranch Hand

Joined: Sep 22, 2011
Posts: 70
In my application I want to create a log file and append log details in it. But when i deploy it, it throws a fileNotFound Exception when what should happen is a new log file must automatically be created and messages need to appended to it.

I am deploying the application in apache tomcat, in a unix system please help
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15661
    
  15

Most probably you mis-spelled or mis-capitalized the directory path for the log file.


Customer surveys are for companies who didn't pay proper attention to begin with.
Maya sekar
Ranch Hand

Joined: Sep 22, 2011
Posts: 70
thanks for the reply but turns out tomcat didn't have permission to write in the Directory where I wanted the log file to be created.

Thanks again
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Application cannot create log file in linux
 
Similar Threads
log question
log files
Logging
Log4j rolling policy must be declared?
Logging in WLS 8.1 - regarding