File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes log4j configuration error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "log4j configuration error" Watch "log4j configuration error" New topic

log4j configuration error

Abhilash Chander
Ranch Hand

Joined: Oct 18, 2009
Posts: 39
Hi, I am using Log4j for my applications logging. I need assitance for two of my problems.

1. I keep getting the following errors on the console

My file is located in the default source package and here is the code.

And is here is the code of my class using it

All my logging is working fine but I dont know why I am still getting these messages.

2. Secondly, this messages keeps printing on the console like 100 times in a single request

I tried to stop that logging by setting the level of my root logger to WARN and created my own logger 'com' for debug logging and set it at the top of the level heiarchy. But I am unable to stop it. Is there any other way to avoid this message from printing because its hard to find the log mesages I printed from my code.

Thanks in advance for your time.
Tanzy Akhtar
Ranch Hand

Joined: Jul 19, 2009
Posts: 110
Hi Chan,

Kindly check the class path of the project.
It seems to you have put the log4j.propertis file somewhere else which is not defined in the classpath.


Roll with punchers, there is always tomorrow.
Techie Blog --
I agree. Here's the link:
subject: log4j configuration error
jQuery in Action, 3rd edition