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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.2.0.Final, 9.0.0.Beta1
    • 8.0.0.Final, 8.1.0.Final
    • CDI / Weld
    • None

      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

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

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

              Created:
              Updated:
              Resolved: