Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-1854

web-fragment.xml not loaded from a static module

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Major
    • None
    • 8.0.0.Alpha3
    • Web (Undertow)
    • None

    Description

      Having a custom static module, e.g. org/jboss/solder which contains solder.jar with META-INF/web-fragment.xml with some filters defined (e.g. CatchExceptionFilter)

      and a WAR application, e.g. catch-basic-servlet (on of Solder examples) with jboss-deployment-structure.xml such as

      <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
          <deployment>
              <dependencies>
                  <module name="org.jboss.solder" meta-inf="import"/>
              </dependencies>
          </deployment>
      </jboss-deployment-structure>
      

      The filters defined in the solder's web-fragment.xml don't seem to work, while the same app works fine if the solder.jar is deployed in the WAR in the WEB-INF/lib instead of a static module.

      People seem to assume that whatever works for WEB-INF/lib would also work for a static module. This assumption should either be fulfilled or clearly explained to people if it doesn't hold.

      Attachments

        Activity

          People

            Unassigned Unassigned
            maschmid@redhat.com Marek Schmidt
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: