Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-577

ResolverUtil can't resolve class under osgi enviroment

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.0
    • 1.4.0
    • camel-core
    • None

    Description

      in method of
      protected void find(Test test, String packageName, ClassLoader loader)
      it try to load class from directory or jar, it works for standalone mode.
      But if the classloader of the method is osgi bundle class loader, it will fail since the getResource(packgename) return neither directory nor jar
      for example, package name is org/apache/camel/convert, then what returned is /org/apache/camel/convert, so both loadImplementationsInDirectory and loadImplementationsInJar doesn't work in this case

      Attachments

        1. CAMEL-577.patch
          6 kB
          Freeman Yue Fang

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ffang Freeman Yue Fang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: