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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.5
    • None
    • Operating System: Linux
      Platform: PC

    • 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

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

            Dates

              Created:
              Updated:
              Resolved: