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
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Reply 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
Greenhorn

Joined: Sep 22, 2011
Posts: 28
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: 12513

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


One of the most odious afflictions that Business has inflicted on the modern English language is "pro-active". Most of the time it's simply redundantly used in place of the simple old word "active". And a good deal of the rest of the time it means "You're not overworked enough yet, so go out and find more!"
Maya sekar
Greenhorn

Joined: Sep 22, 2011
Posts: 28
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
 
 
subject: Application cannot create log file in linux
 
Threads others viewed
log question
Log4j rolling policy must be declared?
Logging
log files
Logging in WLS 8.1 - regarding
IntelliJ Java IDE