Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-876

Cannot load 'org/apache/sshd/sshd-version.properties' in OSGi (Karaf) environment

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.0
    • 2.2.0
    • None

    Description

      2018-12-13T10:05:32,662 | WARN  | [6d24c4ca]-nio2-thread-1 | VersionProperties$LazyHolder     | fig.VersionProperties$LazyHolder   75 | 135 - org.apache.sshd.core - 1.6.0 | Failed (FileNotFoundException) to load version properties: Resource does not exists
      

      It looks like this is because it's not using a correct classloader to access this resource.

      ThreadUtils.resolveDefaultClassLoader(Class<?> anchor) should in my view first consider the anchor class loader. Otherwise it is using the TCCL which may not have access to the sshd bundle.

      Attachments

        Issue Links

          Activity

            People

              lgoldstein Lyor Goldstein
              lichtin Martin Lichtin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: