Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

where is the file log4j.proporties?

 
massimo tarantelli
Ranch Hand
Posts: 35
Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18303
56
Android Eclipse IDE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
massimo tarantelli
Ranch Hand
Posts: 35
Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks as always,
unfortunatly i didn't find the solution, I'm posting the post under the right category.
Thanks.
Massimo
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic