I do think that I have got a hint. The log4j's XML digester could only resolve absolute path but not relative path. However, if you want to the relative path due to the web application. You'd better invoke the
Servlet's getServletContext().getRealPath("/") to return a
String "prefix", which could be used to locate the actual URI of your web resource.