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 where is the file log4j.proporties? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "where is the file log4j.proporties?" Watch "where is the file log4j.proporties?" New topic
Author

where is the file log4j.proporties?

massimo tarantelli
Ranch Hand

Joined: Jun 19, 2012
Posts: 35

Hello everybody,
I have this kind of error...i know, very basic question
log4j:WARN No appenders could be found for logger (org.primefaces.facestrace.phase.listener.TraceResourcePhaseListener).
log4j:WARN Please initialize the log4j system properly.

I read that it's related to the classpath setting, but I didn't find the log4j.properties....where is it?
It seems that i don't have this file...
thanks
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15962
    
  19

We actually have a separate forum for problems with log4j. Log4j doesn't have any JSF-specific characteristics (nor [i]vice versa[i]).

However, in a J2EE webapp, the log4.properties file should be located in the root of the webapp classes directory. That is, "/WEB-INF/classes".

That is also true if you use log4j.xml, which will override log4j.properties.


Customer surveys are for companies who didn't pay proper attention to begin with.
massimo tarantelli
Ranch Hand

Joined: Jun 19, 2012
Posts: 35

Thanks as always,
unfortunatly i didn't find the solution, I'm posting the post under the right category.
Thanks.
Massimo
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: where is the file log4j.proporties?
 
Similar Threads
Help! I am getting strange and unusual Eclipse Warnings
Log 4j config issue
log4j configuration
About Quartz Framework
location for log4j.properties for my EAR Application