File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "unable to log ..." Watch "unable to log ..." New topic

unable to log ...

Hussein Baghdadi
clojure forum advocate

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");
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.


which should give you the correct path.

I agree. Here's the link:
subject: unable to log ...
It's not a secret anymore!