Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-2204

non-deterministic module.xml lookup in product with certified fractions

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Done
    • None
    • 2.2.1.Final
    • core
    • None

    Description

      Multiple fractions bring the same module.xml for the same module, both in community and product. However, in case of product with some certified fraction (including arquillian), this is not true – the product module.xml is different from a community module.xml. We are loading the modules by running classLoader.getResource("path/to/module.xml"), which is non-deterministic in such case: it can randomly load the productized variant or the community variant (where all the productized variants available in the classloader are identical, and also all the community variants are identical). Choosing the community variant in a product setting can lead to weird classloading errors (e.g. the difference between org.jboss.weld:weld-api 2.4.SP1 and 2.4.0.SP2-redhat-1). In my opinion, the product variant (if one exists) should always be loaded, and that's what the 2.2.0.Final-redhat-00021 product release does. This JIRA is to bring the fix back upstream.

      Attachments

        Activity

          People

            lthon@redhat.com Ladislav Thon
            lthon@redhat.com Ladislav Thon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: