Differences between revisions 4 and 5
Revision 4 as of 2006-08-24 09:29:19
Size: 1629
Comment: NoSuchMethodError hint added
Revision 5 as of 2009-09-20 23:01:37
Size: 1631
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 29: Line 29:
Source: [http://jroller.com/page/stritti?entry=myfaces_nosuchmethoderror_at_log4j] Source: [[http://jroller.com/page/stritti?entry=myfaces_nosuchmethoderror_at_log4j]]

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

LoggingSettings (last edited 2009-09-20 23:01:37 by localhost)