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
Most probably you mis-spelled or mis-capitalized the directory path for the log file.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.