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

Goldstein Lyor commented on SSHD-876:
-------------------------------------

How about this - specifically for {{version.properties}} we will "explore" the 
same class loader hierarchy as {{ThreadUtils#resolverClassLoader}} instead of 
assuming the TCCL ?

> 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