Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-996

org.apache.deltaspike.test.core.api.config.propertyconfigsource.ConfigPropertyWARTest#testInjectConfig fails for weblogic

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.5.0
    • None
    • Tests
    • None

    Description

      org.apache.deltaspike.test.core.api.config.propertyconfigsource.ConfigPropertyWARTest#testInjectConfig fails when run against weblogic. This is failing because ConfigResolver.configSources is getting populated during deployment using the Thread's context class loader. At runtime the current Thread's context class loader is used to access configSources. The problem is that the context class loaders are not the same. Afaict there is nothing in the specs that says the context class loaders must be the same. So I think the test is bad and needs to be written differently. If I force the class loader to be the same in a debugger then I can make the test pass.

      Attachments

        Activity

          People

            struberg Mark Struberg
            jjsnyder JJ Snyder
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: