jsf 2 - Why I receive this strange 'ExceptionHandlerFactory' issue on jboss-7? -
i want migrate existing icefaces application jboss server 7 receive exception:
15:01:27,399 severe [javax.enterprise.resource.webcontainer.jsf.config] (msc ser vice thread 1-2) critical error during deployment: : com.sun.faces.config.config urationexception: factory 'javax.faces.context.exceptionhandlerfactory' not configured properly. @ com.sun.faces.config.processor.factoryconfigprocessor.verifyfactories exist(factoryconfigprocessor.java:305) [jsf-impl-2.1.7-jbossorg-2.jar:] @ com.sun.faces.config.processor.factoryconfigprocessor.process(factory configprocessor.java:219) [jsf-impl-2.1.7-jbossorg-2.jar:] @ com.sun.faces.config.configmanager.initialize(configmanager.java:361) [jsf-impl-2.1.7-jbossorg-2.jar:] @ com.sun.faces.config.configurelistener.contextinitialized(configureli stener.java:225) [jsf-impl-2.1.7-jbossorg-2.jar:] @ org.apache.catalina.core.standardcontext.contextlistenerstart(standar dcontext.java:3392) [jbossweb-7.0.13.final.jar:] @ org.apache.catalina.core.standardcontext.start(standardcontext.java:3 850) [jbossweb-7.0.13.final.jar:] @ org.jboss.as.web.deployment.webdeploymentservice.start(webdeployments ervice.java:90) [jboss-as-web-7.1.1.final.jar:7.1.1.final] @ org.jboss.msc.service.servicecontrollerimpl$starttask.startservice(se rvicecontrollerimpl.java:1811) @ org.jboss.msc.service.servicecontrollerimpl$starttask.run(servicecont rollerimpl.java:1746) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor. java:1110) [rt.jar:1.7.0] @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor .java:603) [rt.jar:1.7.0] @ java.lang.thread.run(thread.java:722) [rt.jar:1.7.0] caused by: javax.faces.facesexception: org.icefaces.impl.application.extendedexc eptionhandlerfactory @ javax.faces.factoryfinder.getimplgivenpreviousimpl(factoryfinder.java :643) [jboss-jsf-api_2.1_spec-2.0.1.final.jar:2.0.1.final] @ javax.faces.factoryfinder.getimplementationinstance(factoryfinder.jav a:509) [jboss-jsf-api_2.1_spec-2.0.1.final.jar:2.0.1.final] @ javax.faces.factoryfinder.access$400(factoryfinder.java:139) [jboss-j sf-api_2.1_spec-2.0.1.final.jar:2.0.1.final] @ javax.faces.factoryfinder$factorymanager.getfactory(factoryfinder.jav a:993) [jboss-jsf-api_2.1_spec-2.0.1.final.jar:2.0.1.final] @ javax.faces.factoryfinder.getfactory(factoryfinder.java:343) [jboss-j sf-api_2.1_spec-2.0.1.final.jar:2.0.1.final] @ com.sun.faces.config.processor.factoryconfigprocessor.verifyfactories exist(factoryconfigprocessor.java:303) [jsf-impl-2.1.7-jbossorg-2.jar:] ... 11 more caused by: java.lang.instantiationexception: org.icefaces.impl.application.exten dedexceptionhandlerfactory @ java.lang.class.newinstance0(class.java:357) [rt.jar:1.7.0] @ java.lang.class.newinstance(class.java:325) [rt.jar:1.7.0] @ javax.faces.factoryfinder.getimplgivenpreviousimpl(factoryfinder.java :641) [jboss-jsf-api_2.1_spec-2.0.1.final.jar:2.0.1.final] ... 16 more
i stuck 'cause don't know how solve this.
does have clue?
i have javax.faces.jar
in lib directory of ear seems removing not (i receive lot of other exceptions).
update: if add web.xml:
<context-param> <param-name>org.jboss.jbossfaces.war_bundles_jsf_impl</param-name> <param-value>true</param-value> </context-param>
the error seems gone, 1 appears:
15:56:51,975 error [org.apache.catalina.core.containerbase.[jboss.web].[default- host].[/cloudmatrix]] (msc service thread 1-3) exception sending context initial ized event listener instance of class com.sun.faces.config.configurelistener: java.lang.runtimeexception: com.sun.faces.config.configurationexception: config uration failed! class org.jboss.as.web.deployment.jsf.jandexannotationprovider s not instance of com.sun.faces.spi.annotationprovider @ com.sun.faces.config.configurelistener.contextinitialized(configureli stener.java:292) [javax.faces.jar:2.1.6-snapshot] @ org.apache.catalina.core.standardcontext.contextlistenerstart(standar dcontext.java:3392) [jbossweb-7.0.13.final.jar:] @ org.apache.catalina.core.standardcontext.start(standardcontext.java:3 850) [jbossweb-7.0.13.final.jar:] @ org.jboss.as.web.deployment.webdeploymentservice.start(webdeployments ervice.java:90) [jboss-as-web-7.1.1.final.jar:7.1.1.final] @ org.jboss.msc.service.servicecontrollerimpl$starttask.startservice(se rvicecontrollerimpl.java:1811) @ org.jboss.msc.service.servicecontrollerimpl$starttask.run(servicecont rollerimpl.java:1746) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor. java:1110) [rt.jar:1.7.0] @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor .java:603) [rt.jar:1.7.0] @ java.lang.thread.run(thread.java:722) [rt.jar:1.7.0] caused by: com.sun.faces.config.configurationexception: configuration failed! cl ass org.jboss.as.web.deployment.jsf.jandexannotationprovider not instance of com.sun.faces.spi.annotationprovider @ com.sun.faces.config.configmanager.initialize(configmanager.java:375) [javax.faces.jar:2.1.6-snapshot] @ com.sun.faces.config.configurelistener.contextinitialized(configureli stener.java:225) [javax.faces.jar:2.1.6-snapshot] ... 8 more caused by: javax.faces.facesexception: class org.jboss.as.web.deployment.jsf.jan dexannotationprovider not instance of com.sun.faces.spi.annotationprovider @ com.sun.faces.spi.annotationproviderfactory.createannotationprovider( annotationproviderfactory.java:78) [javax.faces.jar:2.1.6-snapshot] @ com.sun.faces.config.configmanager$annotationscantask.<init>(configma nager.java:807) [javax.faces.jar:2.1.6-snapshot] @ com.sun.faces.config.configmanager.initialize(configmanager.java:348) [javax.faces.jar:2.1.6-snapshot] ... 9 more
i had put jboss-deployment-structure.xml in ear content:
<?xml version="1.0" encoding="utf-8"?> <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0"> <deployment> <exclusions> <module name="javax.faces.api" slot="main"/> <module name="com.sun.jsf-impl" slot="main"/> <module name="javax.faces.api" slot="1.2"/> <module name="com.sun.jsf-impl" slot="1.2"/> <module name="org.jboss.as.web" slot="main" /> </exclusions> <dependencies> <module name="org.hibernate.validator" export="true"/> <module name="javax.validation.api" export="true"/> <module name="org.codehaus.jettison" export="true"/> <module name="org.jboss.resteasy.resteasy-jaxrs" export="true"/> <module name="org.jboss.resteasy.resteasy-jackson-provider" export="true"/> <module name="org.apache.log4j" export="true"/> <module name="org.jboss.as.web" slot="main" export="true"/> <module name="javax.faces.api" slot="main" export="true"/> <module name="com.sun.jsf-impl" slot="main" export="true"/> <module name="org.jboss.as.web" slot="main"> <imports> <include path="/org/**" /> <exclude path="/meta-inf/**" /> </imports> </module> </dependencies> </deployment> </jboss-deployment-structure>