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

Seth Leger commented on KARAF-5384:
-----------------------------------

Here are the optional dependencies that can trigger this issue:
{noformat}
Import-Package = 
...
        net.i2p.crypto.eddsa;resolution:=optional;version="[0.2,1)",
        net.i2p.crypto.eddsa.math;resolution:=optional,
        net.i2p.crypto.eddsa.spec;resolution:=optional;version="[0.2,1)",
        org.apache.mina.core;resolution:=optional;version="[2.0,3)",
        org.apache.mina.core.buffer;resolution:=optional;version="[2.0,3)",
        org.apache.mina.core.future;resolution:=optional;version="[2.0,3)",
        org.apache.mina.core.service;resolution:=optional;version="[2.0,3)",
        org.apache.mina.core.session;resolution:=optional;version="[2.0,3)",
        org.apache.mina.transport.socket;resolution:=optional;version="[2.0,3)",
        
org.apache.mina.transport.socket.nio;resolution:=optional;version="[2.0,3)",
        org.apache.tomcat.jni;resolution:=optional,
        org.bouncycastle.crypto.prng;resolution:=optional;version="[1.57,2)",
        org.bouncycastle.openssl;resolution:=optional;version="[1.57,2)",
        org.bouncycastle.openssl.jcajce;resolution:=optional;version="[1.57,2)",
...
{noformat}

> Optional dependencies in MINA SSHD Core cause system bundle refreshes
> ---------------------------------------------------------------------
>
>                 Key: KARAF-5384
>                 URL: https://issues.apache.org/jira/browse/KARAF-5384
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-core
>    Affects Versions: 4.1.0, 4.1.1, 4.1.2
>         Environment: Fedora Linux
>            Reporter: Seth Leger
>            Priority: Critical
>             Fix For: 4.1.3
>
>
> In similar fashion to KARAF-5251, if you install any feature in Karaf that 
> includes:
> - Apache MINA
> - bouncycastle
> - net.i2p.crypto
> it will cause the MINA SSHD Core bundle to refresh, which in turn refreshes 
> most of the core framework bundles. This has a variety of bad effects 
> including:
> - Terminating the current SSH session
> - Terminating subsequent feature installations
> This is more severe than KARAF-5251 because these libraries are not part of 
> the core Karaf distro so it is not possible to add them to 
> {{startup.properties}} without first repackaging Karaf to contain the desired 
> bundles in the {{/system}} directory.
> This also makes testing any Karaf feature that contains MINA, bouncycastle, 
> or net.i2p.crypto impossible in Pax Exam (unless you use 
> org.apache.karaf.features.FeaturesService.Option.NoAutoRefreshBundles or 
> feature:install -r) because the refresh invalidates @Inject references in 
> your test as the core bundles are refreshed.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to