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

Details

    • 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>

    Description

      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

      Attachments

        1. faces-config.xml
          0.9 kB
        2. jboss-deployment-structure.xml
          0.8 kB
        3. jsf-api-2.1.28.jar
          623 kB
        4. jsf-impl-2.1.28.jar
          1.94 MB
        5. LogFile.txt
          56 kB
        6. module-jsf-api.xml
          2 kB
        7. module-jsf-impl.xml
          2 kB
        8. web.xml
          3 kB

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: