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

2018-10-15 Thread ASF GitHub Bot (JIRA)


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

ASF GitHub Bot commented on SSHD-847:
-

Github user rovarga closed the pull request at:

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


> 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
> Fix For: 2.1.1
>
>
> 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)


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

2018-10-10 Thread Goldstein Lyor (JIRA)


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

Goldstein Lyor commented on SSHD-847:
-

Thanks a lot [~nite] for your contribution - merged it in [with 
acknowledgement|https://github.com/apache/mina-sshd/commit/0181a55c0c03b44e50c4ee6afdba43ff11412bfc].
 Please close the PR.

> 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)


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

2018-10-10 Thread ASF GitHub Bot (JIRA)


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

ASF GitHub Bot commented on SSHD-847:
-

GitHub user rovarga opened a pull request:

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

[SSHD-847] Add sshd-osgi artifact shading sshd-common and sshd-core



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

$ git pull https://github.com/rovarga/mina-sshd sshd847

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

https://github.com/apache/mina-sshd/pull/69.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 #69


commit 2d36171f8fe6e65ec06080cb50d1bf2da1f6591f
Author: Robert Varga 
Date:   2018-10-10T10:58:20Z

[SSHD-847] Add sshd-osgi artifact shading sshd-common and sshd-core




> 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)


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

2018-10-07 Thread Goldstein Lyor (JIRA)


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

Goldstein Lyor commented on SSHD-847:
-

See https://bnd.bndtools.org/chapters/390-wrapping.html for possible way to 
combine shade+bundle plugins

> 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)


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

2018-10-02 Thread Goldstein Lyor (JIRA)


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

Goldstein Lyor commented on SSHD-847:
-

{quote}
not sure I can get to it sooner than in about two weeks
{quote}
That's quite alright - once 2.1.0 is out (imminent) the next release that will 
(hopefully) contain a fix for this issue will take more than 2 weeks or so. As 
long as you (or others) can find some time within a reasonable period to 
provide some PR it should not be a problem.

> 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)


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

2018-10-02 Thread Robert Varga (JIRA)


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

Robert Varga commented on SSHD-847:
---

[~lgoldstein] I am currently tied down, I am not sure I can get to it sooner 
than in about two weeks, though :( It definitely is on my radar, though.

> 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)


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

2018-10-02 Thread Goldstein Lyor (JIRA)


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

Goldstein Lyor commented on SSHD-847:
-

I wonder if any of you could come up with a PR for this issue since we do not 
have an OSGi environment where we could test fixes for this issue whereas you 
seem to have such an environment and can make sure that the suggested fix 
works. Alternatively, is there some way we could test a patch for this issue 
locally (perhaps as part of the Maven build) ? We are hampered by the fact that 
we do not have extensive OSGi experience and cannot easily tell what is the 
exact problem, how to fix it + test the fix. We need to educate ourselves on 
this issue and it will take considerably more than if either of you who is 
already versed in OSGi could come up with a fix.

 

Your contribution will be greatly appreciated...:)

> 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)


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

2018-10-02 Thread Matthias Sohn (JIRA)


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

Matthias Sohn commented on SSHD-847:


We plan to move from jsch to mina sshd for JGit [1]. Since JGit is also used in 
Eclipse running on Equinox OSGi runtime
we are also affected by this split package problem in 2.1.

So we'll start with 2.0.0 and update to the next version fixing this split 
package as soon as that's available.

[1] [https://bugs.eclipse.org/bugs/show_bug.cgi?id=520927]

> 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)


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

2018-10-02 Thread Robert Varga (JIRA)


[ 
https://issues.apache.org/jira/browse/SSHD-847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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)