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

[GSS](7.0.z) Jar sub deployment has as first dependency parent ear

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.4.CR1, 7.0.4.GA
    • None
    • 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
    • EAP 7.0.4

      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:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: