> In my Program i used DOMConfigurator.configure("D:/log4j.xml");
> now it throws new Error.
> 
> log4j:WARN No appenders could be found for logger (com.log.ClassLogger).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
> more info.


putting debug="true" into your XML will help you see how it's getting 
parsed. If you don't see additional information after adding that, it's 
frequently a sign that your XML file is not being used at all...

<log4j:configuration debug="true" 
xmlns:log4j="http://jakarta.apache.org/log4j/";>
   ...
</log4j:configuration>

Reply via email to