Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-1479

Jar sub deployment has as first dependency parent ear

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.0.Alpha10
    • 3.0.0.Alpha1
    • Modules
    • None
    • Hide

      1. Create ear file with war and jar file in ear main directory
      2. Add jar file to war class path via war MANIFEST.MF
      3. Add method to class in jar file instantiating class from server implicit modules
      4. Add jar file containing class from step #3 but different behavior to ear/lib directory
      5. Invoke method from step #3 from war file

      ERROR: Class from ear/lib directory is instantiated instead of class from implicit module

      Show
      1. Create ear file with war and jar file in ear main directory 2. Add jar file to war class path via war MANIFEST.MF 3. Add method to class in jar file instantiating class from server implicit modules 4. Add jar file containing class from step #3 but different behavior to ear/lib directory 5. Invoke method from step #3 from war file ERROR: Class from ear/lib directory is instantiated instead of class from implicit module

      Jar file included in ear main directory is resolved as sub deployment with parent ear as first dependency.
      Therefore jar files contained in ear/lib directory have priority before implicit modules when class is created inside jar file.

              vpakan Vlado Pakan (Inactive)
              vpakan Vlado Pakan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: