1 Reply Latest reply on Oct 5, 2016 4:00 AM by Sascha Janz

    Deploy JSF 2.1.7 application on wildfly 9

    Sascha Janz Master

      i got an application which need JSF implementation 2.1.7.

       

      i try to deploy it under wildfly 9.

      in the deployment structure i excluded de JSF modules.

       

       

      <exclusions>

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

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

       

      </exclusions>

       

       

      but when i deploy it i got the error below.

       

      any ideas what i can do?

       

      greetings

      Sascha

       

       

      09:21:21,329 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 70) 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:376)

              at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225)

              at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:173)

              at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:195)

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:100)

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)

              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

              at java.util.concurrent.FutureTask.run(FutureTask.java:266)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

              at java.lang.Thread.run(Thread.java:745)

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

      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)

              at com.sun.faces.config.ConfigManager$AnnotationScanTask.<init>(ConfigManager.java:808)

              at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:349)

              ... 11 more