On Thu, 26 Feb 2009 14:03:43 +0530
 kondal rao <[email protected]> wrote:
Hi,

     I am using the log4j for logging in my webapplication.I am keeping the
log4j.xml file outside of my web application(generally we will keep under
WEB-INF/classes).My problem is my application is not loading  the
log4j.xml.I am using the following code while my context is initializing to
load the log4j.xml in to my class path.
System.setProperty("log4j.configuration",
"C:/samplel/log4j.xml"); System.setProperty("log4j.configuratorClass",
"com.foo.DOMConfigurator"); But it is not working.I am using tomcat5.0.

Try using a valid URL to your config file...

file:///C:/samplel/log4j.xml

BTW, is your directory really named "samplel"?  Or is it supposed to be "sample"?


Jake



Any Ideas Please.



--
   Regards
   Kondalarao Navuluri


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to