mardi 3 juin 2014

jsf 2.2.6 inclusion in jboss eap 6.1


Vote count:

0




I am in process of upgrading jsf jars in my application and I was using jboss eap 6.1


Created a new module org.glassfish.jsf and added module.xml(attached) under jboss-eap-6.1\modules\system\layers\base\org\glassfish\jsf\main and


javax.faces-2.2.6 (http://ift.tt/1l2H0vN)


Here is my jboss-deployment-structure.xml



<deployment>

<exclusions>

<module name="javax.faces.api" />

<module name="com.sun.jsf-impl" />

</exclusions>

<dependencies>

<module name="org.glassfish.jsf" />

</dependencies>

</deployment>


When I start my application I am getting the below exception attached (server.log as well)


16:19:29,060 INFO [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 49) Initializing Mojarra 2.2.6 ( 20140304-1537 http://ift.tt/1tEhhus) for context '/uiToolKit'


16:19:30,342 SEVERE [javax.enterprise.resource.webcontainer.jsf.application] (ServerService Thread Pool -- 49) JSF1051: Service entry 'org.jboss.as.jsf.injection.JSFInjectionProvider' does not extend DiscoverableInjectionProvider. Entry will be ignored.


16:19:30,358 INFO [javax.enterprise.resource.webcontainer.jsf.application] (ServerService Thread Pool -- 49) JSF1048: PostConstruct/PreDestroy annotations present. ManagedBeans methods marked with these annotations will have said annotations processed.


16:19:30,374 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 49) Critical error during deployment: : com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! Class org.jboss.as.jsf.injection.JandexAnnotationProvider is not an instance of com.sun.faces.spi.AnnotationProvider



at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:449) [javax.faces-2.2.6.jar:2.2.6]

at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:214) [javax.faces-2.2.6.jar:2.2.6]

at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]

at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_29]

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_29]

at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_29]

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_29]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_29]

at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_29]

at org.jboss.threads.JBossThread.run(JBossThread.java:122)


Caused by: javax.faces.FacesException: Class org.jboss.as.jsf.injection.JandexAnnotationProvider is not an instance of com.sun.faces.spi.AnnotationProvider



at com.sun.faces.spi.AnnotationProviderFactory.createAnnotationProvider(AnnotationProviderFactory.java:78) [javax.faces-2.2.6.jar:2.2.6]

at com.sun.faces.config.ConfigManager$AnnotationScanTask.<init>(ConfigManager.java:896) [javax.faces-2.2.6.jar:2.2.6]

at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:381) [javax.faces-2.2.6.jar:2.2.6]

... 13 more


Please help me in resolving the issue.


Thanks,


Naveen



asked 14 secs ago






Aucun commentaire:

Enregistrer un commentaire