File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes File Logging Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "File Logging Problem" Watch "File Logging Problem" New topic
Author

File Logging Problem

Saurav Kumar
Greenhorn

Joined: Feb 24, 2008
Posts: 2
Hi,

I am trying to write into a log file from my application to jboss server directory. However I am getting the following error.
[STDERR] java.io.IOException: Couldn't get lock for logs/order/error.log(Here I am giving a file name pattern as "logs/order/debug.log" to the fileHandler)

However if I give an absolute path like "C:/ATG/logs/order/error.log"
its working fine.

What is the problem? Please help.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: File Logging Problem
 
Similar Threads
Error: "R cannot be resolved"
Tomcat installation help please!!!!!
output files
File Logging problem
Help me with a Simple HelloWorld.jsp