Commons Discovery
  1. Commons Discovery
  2. DISCOVERY-6

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

    Details

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

      Operating System: Linux
      Platform: PC

      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?

        Activity

        Len Trigg created issue -
        Henri Yandell made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 32369 12341892
        Henri Yandell made changes -
        Key COM-1740 DISCOVERY-6
        Component/s Discovery [ 12311112 ]
        Affects Version/s unspecified [ 12311647 ]
        Project Commons [ 12310458 ] Commons Discovery [ 12310472 ]
        Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
        Simone Tripodi made changes -
        Assignee Simone Tripodi [ simone.tripodi ]
        Simone Tripodi made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 0.5 [ 12312208 ]
        Resolution Fixed [ 1 ]
        Sebb made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Simone Tripodi made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Simone Tripodi made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Simone Tripodi
            Reporter:
            Len Trigg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development