Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-2983

Consider using myfaces class's classloader when loading resources

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.3-SNAPSHOT
    • 2.0.3
    • General
    • None

    Description

      There are a few instances where only the TCCL is considered for loading resources that are actually in a myfaces jar. This won't work in an isolated classes environment like OSGI. A simple fix is to try the TCCL and if it doesn't work try the cl that loads myfaces classes. This solves the problem in geronimo's OSGI environment but I wonder if only the cl for myfaces classes should be considered in many of these cases since it looks like the resource being loaded is often a known file packed in with myfaces that can't be replaced by a user supplied resource.

      Attachments

        1. MYFACES-2983-2.patch
          7 kB
          David Jencks

        Issue Links

          Activity

            People

              lu4242 Leonardo Uribe
              djencks David Jencks
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: