aspose file tools*
The moose likes Servlets and the fly likes unable to log ... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "unable to log ..." Watch "unable to log ..." New topic
Author

unable to log ...

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Hey folks.
I have a directory inside WEB-INF dir of my application called log.
how to log to this dir (I want to use J2SE logging API).
I don't want to log TOMCAT_HOME/log dir.
I got an exception : unable to synchronized at WEB-INF/log
I tried the following in the servlet :
Handler h = new FileHandler("/WEB-INF/log/log.xml");
thank.
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
That code will attempt to log at /WEB-INF/log/log.xml from the root of your filesystem, your web application.

try


which should give you the correct path.


42
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: unable to log ...