Uploaded image for project: 'Commons Discovery'
  1. Commons Discovery
  2. DISCOVERY-6

[discovery] Doesn't work with ClassLoaders that do not support getResource()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.5
    • Labels:
      None
    • Environment:

      Operating System: Linux
      Platform: PC

    • Bugzilla Id:
      32369

      Description

      I am trying to run inside a plugin environment where the plugin ClassLoader
      extracts classes from nested jarfiles. This ClassLoader supports loadClass() and
      getResourceAsStream(), but does not support getResource().

      Discovery assumes that all classes that can be loaded by a ClassLoader can be
      accessed by getResource(), and thus fails in this environment. In my googling, I
      found several people experiencing this problem, but no solutions.

      Is this project still actively maintained?

        Attachments

          Activity

            People

            • Assignee:
              simone.tripodi Simone Tripodi
              Reporter:
              lenbok@gmail.com Len Trigg
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: