This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply 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

IDE: NetBeans 7.1 - Java:1.7.0_2 - JSF 2.0/2.1 - Mojarra 2.1.3 - Primefaces 3.2 - GlassFish 3.1.2
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14487
    
    7

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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: where is the file log4j.proporties?
 
Similar Threads
Help! I am getting strange and unusual Eclipse Warnings
Log 4j config issue
About Quartz Framework
location for log4j.properties for my EAR Application
log4j configuration