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

beans in module jars are not discovered except the first jar in module

    XMLWordPrintable

Details

    Description

      CDI does not scan module with multiple jars. Only first jar is scanned.

      Workaround is to package everything in single jar file.

      To reproduce:

      #download attached files
      #download and unzip wildfly
      cd wildfly-9.0.0.Alpha1-SNAPSHOT #or other version > 8.0.0
      unzip ../module.multiplejars.zip
      cp ../servlet-cdi-test3.war standalone/deployments/
      ./bin/standalone.sh
      # observe deployment fails
      # stop server
      unzip ../module.ok.zip
      ./bin/standalone.sh
      # observe deployment succeeds
      

      The same scenario succeeds in both cases on EAP 6.2.x.

      module.ok.zip was created from module.multiplejars.zip by merging jar files into single one

      Attachments

        1. servlet-cdi-test-jar.src.zip
          7 kB
        2. servlet-cdi-test3.war
          6 kB
        3. servlet-cdi-test3.src.zip
          7 kB
        4. module.ok.zip
          9 kB
        5. module.multiplejars.zip
          11 kB
        6. jboss-module-test.src.zip
          7 kB

        Issue Links

          Activity

            People

              sdouglas1@redhat.com Stuart Douglas
              psakar@redhat.com Petr Sakar (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: