Settings
Generally, you should run at WARN to get "normal" error messages. Below are listed TRACE and DEBUG level settings you can use to get additional information about specific events in the framework.
Class |
Debug Level |
Description |
org.apache.myfaces.lifecycle.LifecycleImpl |
TRACE |
Show lifecycle phases as they occur |
javax.faces.webapp.FacesServlet |
TRACE |
Show servlet invocation |
org.apache.myfaces.application.NavigationHandlerImpl |
TRACE |
Show navigation processing |
org.apache.myfaces.application.ApplicationImpl |
TRACE |
Show modifications to Application |
org.apache.myfaces.el.VariableResolverImpl |
DEBUG |
Show unresolved variables |
org.apache.myfaces.util.DebugUtils |
TRACE |
Controls DebugUtils.traceView() output |
org.apache.myfaces.renderkit.html.HtmlResponseWriterImpl |
DEBUG |
HTML rendering related issues (e.g, no content type). Good setting during development |
NoSuchMethodError
if you get an exception like following :
java.lang.NoSuchMethodError: org.apache.log4j.Category.log(Ljava/lang/String;Lorg/apache/log4j/Level;Ljava/lang/Object;Ljava/lang/Throwable;)V at org.apache.commons.logging.impl.Log4JCategoryLog.error(Log4JCategoryLog.java:149)
there is missing the configuration file for commons logging.
You have to add a properties file for commons logging to the classpath of your web application (WEB-INF/classes):
commons-logging.properties
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
Source: http://jroller.com/page/stritti?entry=myfaces_nosuchmethoderror_at_log4j