File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes Log 4j config issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Log 4j config issue" Watch "Log 4j config issue" New topic
Author

Log 4j config issue

Neeraj Vij
Ranch Hand

Joined: Nov 25, 2003
Posts: 315
Hi,

I have a standalone application developed in Eclipse. Application is using log4j. Logs are genrating fine when I am running it from eclipse.

When I try to run the main class through command prompt, I am getting the error "log4j:WARN No appenders could be found for logger"

I have put the log4j.properties file in classpath also.

It is not giving error for the main class file, it gives the name of the class called with in the main class.

for example -

Class A{
static Logger log = Logger.getLogger(A.class);
B b = new B();
}

Class A{
static Logger log = Logger.getLogger(B.class);
}

log4j:WARN No appenders could be found for logger (B).
log4j:WARN Please initialize the log4j system properly.

Please provide some pointers.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Log 4j config issue
 
Similar Threads
Locating Log4j.properties in Eclipse 3.2?
How to call login.jsp in eclipse
Log4J configuration problem
error in log4j.properties
log4j:WARN Please initialize the log4j system properly