Uploaded image for project: 'HiveMind'
  1. HiveMind
  2. HIVEMIND-207

ClassFactoryClassLoader conceals loader resources

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.1.1
    • None
    • framework
    • None

    Description

      Apologies up front if I'm being dense, or missed a FAQ someplace....

      My example is in the context of tapestry 4, but the issue is in hivemind I believe. When a tapestry page gets enhanced and defined by the ClassFactoryClassLoader, one loses the ability to obtain classloader resources. For example, if you call getClass().getClassLoader().getResource(...), you will always get null back even for resources that are present in the web app classloader.

      Unless I'm mistaken, the reason for this is that ClassFactoryClassLoader doesn't not override findResource() and delegate to it's internal list of loaders.

      Attachments

        1. patch.txt
          1 kB
          Tim Eck

        Activity

          People

            Unassigned Unassigned
            timeck Tim Eck
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: