Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-16576

[GSS](7.2.z) WFLY-11870 - abstract classes with @EJB annotation included in libraries will cause deployment failures

XMLWordPrintable

    • Migration, Compatibility/Configuration, User Experience
    • +
    • Hide

      Use the attached Reproducer (not for build) and deploy the war files
      slsbInjection/web-1/target/ejb31-Injection-web1.war
      -> working
      slsbInjection/web-2/target/ejb31-Injection-web2.war
      -< deployment failure

      Show
      Use the attached Reproducer (not for build) and deploy the war files slsbInjection/web-1/target/ejb31-Injection-web1.war -> working slsbInjection/web-2/target/ejb31-Injection-web2.war -< deployment failure

      If an archive include libraries with interfaces and abstract classes the deployment will fail if there are annotations for injection like @EJB.
      Only if the injected EJB is available within the deployed file (or any other deployment) it is possible to deploy it.

      As the abstract class can not cause any instance the failure does not make sense.
      Also former versions are deploying the same file correct and work fine.

            thofman Tomas Hofman
            rhn-support-wfink Wolf Fink
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: