Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-3940

bundled jsf deployment fails when org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL true

XMLWordPrintable

    • Hide

      it might be possible to use filters on the module.xml of jboss-as-web but mine (below) did not work either

      <resources>
      <resource-root path="jboss-as-web-7.1.0.Final-redhat-1.jar">
      <filter>

      <exclude path="META-INF/services/com.sun.faces.spi.annotationprovider"/>
      <exclude path="META-INF/services/com.sun.faces.spi.injectionprovider"/>

      </filter>
      </resource-root>
      <resource-root path="jasper-jdt-7.0.10.Final-redhat-1.jar"/>
      <resource-root path="jbossweb-7.0.10.Final-redhat-1.jar"/>
      <!-- Insert resources here -->
      </resources>

      Show
      it might be possible to use filters on the module.xml of jboss-as-web but mine (below) did not work either <resources> <resource-root path="jboss-as-web-7.1.0.Final-redhat-1.jar"> <filter> <exclude path="META-INF/services/com.sun.faces.spi.annotationprovider"/> <exclude path="META-INF/services/com.sun.faces.spi.injectionprovider"/> </filter> </resource-root> <resource-root path="jasper-jdt-7.0.10.Final-redhat-1.jar"/> <resource-root path="jbossweb-7.0.10.Final-redhat-1.jar"/> <!-- Insert resources here --> </resources>

      It is impossible for Applications to bundle their own JSF Implementations even with org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL defined in web.xml, because jboss-as-web provides META-INF/services/com.sun.faces.spi.annotationprovider and injectionprovider please see https://github.com/jbossas/jboss-as/tree/master/web/src/main/resources/META-INF/services and therefor will always try to use the JandexAnnotationProvider, which cannot work on different JSF Versions

      12:29:30,105 SCHWERWIEGEND [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-8) Critical error during deployment: : com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! Class org.jboss.as.web.deployment.jsf.JandexAnnotationProvider is not an instance of com.sun.faces.spi.AnnotationProvider

        1. faces-config.xml
          0.9 kB
          Sivaprasad Krishnaswamy
        2. jboss-deployment-structure.xml
          0.8 kB
          Sivaprasad Krishnaswamy
        3. LogFile.txt
          56 kB
          Sivaprasad Krishnaswamy
        4. module-jsf-api.xml
          2 kB
          Sivaprasad Krishnaswamy
        5. module-jsf-impl.xml
          2 kB
          Sivaprasad Krishnaswamy
        6. web.xml
          3 kB
          Sivaprasad Krishnaswamy

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              rhn-gps-juhoffma Juergen Hoffmann (Inactive)
              Votes:
              12 Vote for this issue
              Watchers:
              17 Start watching this issue

                Created:
                Updated:
                Resolved: