lemonzone2010 / javamelody

Automatically exported from code.google.com/p/javamelody
0 stars 0 forks source link

JSF subsystem deactivation by parameter #393

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I would like to have a parameter to deactivate the JSF subsystem. Is this 
possible?

The detection of MOJARRA doesn't work very well in JBoss 7 because in some 
cases the class com.sun.faces.application.ActionListenerImpl is available but 
the ApplicationFactory isn't which causes javamelody to output the followning 
message:

2014-03-25 11:08:35,029 INFO  [] [net.bull.javamelody] (ServerService Thread 
Pool -- 50) initialization of jsf action listener failed, skipping: 
java.lang.IllegalStateException: Kein Rügriff für 
javax.faces.application.ApplicationFactory gefunden.
    at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1010) [jboss-jsf-api_2.1_spec-2.1.19.1.Final-redhat-1.jar:2.1.19.1.Final-redhat-1]
    at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:342) [jboss-jsf-api_2.1_spec-2.1.19.1.Final-redhat-1.jar:2.1.19.1.Final-redhat-1]
    at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:141) [jsf-impl-2.1.19-redhat-1.jar:2.1.19-redhat-1]
    at net.bull.javamelody.JsfActionHelper.initJsfActionListener(JsfActionHelper.java:42) [javamelody-core-1.49.0.jar:1.49.0]
    at net.bull.javamelody.FilterContext.<init>(FilterContext.java:96) [javamelody-core-1.49.0.jar:1.49.0]
    at net.bull.javamelody.MonitoringFilter.init(MonitoringFilter.java:111) [javamelody-core-1.49.0.jar:1.49.0]
    at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:416) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

Original issue reported on code.google.com by jan.roeh...@googlemail.com on 25 Mar 2014 at 10:10

GoogleCodeExporter commented 9 years ago
Instead of adding a parameter, I would like to remove the log of the 
stack-trace.
That is only the following would be logged:
"2014-03-25 11:08:35,029 INFO  [] [net.bull.javamelody] (ServerService Thread 
Pool -- 50) initialization of jsf action listener failed, skipping: 
java.lang.IllegalStateException: Kein Rügriff für 
javax.faces.application.ApplicationFactory gefunden."

Would it be OK?

In any case, the log does not block javamelody or the application.

Original comment by evernat@free.fr on 28 Mar 2014 at 4:38

GoogleCodeExporter commented 9 years ago
It's fixed in trunk, without stack-trace (revision 3778) and ready for the next 
release (1.51).

Original comment by evernat@free.fr on 20 Apr 2014 at 12:47