[ 
https://issues.apache.org/jira/browse/SSHD-876?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16720134#comment-16720134
 ] 

ASF GitHub Bot commented on SSHD-876:
-------------------------------------

GitHub user lgoldstein opened a pull request:

    https://github.com/apache/mina-sshd/pull/83

    [SSHD-876] Look through the resolvable class loaders hierarchy when looking 
for the 'sshd-version.properties' file

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/lgoldstein/mina-sshd SSHD-876

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/mina-sshd/pull/83.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #83
    
----
commit dedefa3ed1535a6ed5556e27ecce277e6712bf3d
Author: Lyor Goldstein <lgoldstein@...>
Date:   2018-12-13T12:55:17Z

    [SSHD-876] Look through the resolvable class loaders hierarchy when looking 
for the 'sshd-version.properties' file

----


> Cannot load 'org/apache/sshd/sshd-version.properties' in OSGi (Karaf) 
> environment
> ---------------------------------------------------------------------------------
>
>                 Key: SSHD-876
>                 URL: https://issues.apache.org/jira/browse/SSHD-876
>             Project: MINA SSHD
>          Issue Type: Wish
>    Affects Versions: 1.6.0
>            Reporter: Martin Lichtin
>            Assignee: Goldstein Lyor
>            Priority: Major
>
> {noformat}
> 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
> {noformat}
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to