You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Robert Varga (JIRA)" <ji...@apache.org> on 2018/10/02 11:01:00 UTC

[jira] [Commented] (SSHD-847) Split package across sshd-core and sshd-common causes OSGi load problem

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

Robert Varga commented on SSHD-847:
-----------------------------------

I am happy to wait for the next release, although it would be nice to have a release with SSHD-840 fixed, getting SSHD-846 is worth the wait. For testing, in OpenDaylight we use Karaf, so what we are doing is:
 # generate feature.xmls
 # test them using pax-exam

The artifacts are not published to Central (yet, it is a work in progress), but you can find the harness in our packaging of sshd here: [https://github.com/opendaylight/odlparent/blob/master/features/odl-apache-sshd/pom.xml] . Perhaps you will find some of it useful.

> Split package across sshd-core and sshd-common causes OSGi load problem
> -----------------------------------------------------------------------
>
>                 Key: SSHD-847
>                 URL: https://issues.apache.org/jira/browse/SSHD-847
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>            Reporter: Robert Varga
>            Priority: Major
>              Labels: osgi
>
> sshd-core and sshd-common fail to install inside karaf-4.2.1 container, as the following error is reported:
> {noformat}
> Uses constraint violation. Unable to resolve resource org.apache.sshd.core [org.apache.sshd.core/2.1.0] because it exports package 'org.apache.sshd.common' and is also exposed to it from resource org.apache.sshd.common [org.apache.sshd.common/2.1.0] via the following dependency chain:
>   org.apache.sshd.core [org.apache.sshd.core/2.1.0]
>     import: (&(osgi.wiring.package=org.apache.sshd.client.config.hosts)(version>=2.1.0)(!(version>=3.0.0)))
>      |
>     export: osgi.wiring.package: org.apache.sshd.client.config.hosts; uses:=org.apache.sshd.common
>     export: osgi.wiring.package=org.apache.sshd.common
>   org.apache.sshd.common [org.apache.sshd.common/2.1.0]
>         at org.apache.felix.resolver.ResolverImpl$UseConstraintError.toException(ResolverImpl.java:2471)
>         at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:420)
>         at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:378)
>         at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:332)
>         at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:257)
>         at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:388)
>         at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1025)
>         at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:964)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>         at java.lang.Thread.run(Thread.java:748)
> {noformat}
> Until this is resolved I don't see how sshd-core is usable in OSGi.



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