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

Christian Schneider commented on KARAF-3888:
--------------------------------------------

Just implemented the removal of the jta api from Aries transaction.manager and 
upgraded karaf to transaction.manager 1.3.0-SNAPSHOT and jline 2.13-SNAPSPHOT.

If I now do these steps:
feature:repo-add mvn:org.apache.cxf.karaf/apache-cxf/3.1.1/xml/features
feature:repo-add mvn:org.apache.camel.karaf/apache-camel/2.15.2/xml/features
feature:repo-add 
mvn:org.apache.activemq/activemq-karaf/5.11.2-SNAPSHOT/xml/features
feature:install camel
feature:install cxf
feature:install -v -t cxf-ws-policy

I get no console refreshs and these bundle refereshs:
  Bundles to refresh:
    activemq-karaf/5.11.2.SNAPSHOT (Wired to 
org.apache.activemq.activemq-osgi/5.11.2.SNAPSHOT which is being refreshed)
    org.apache.activemq.activemq-osgi/5.11.2.SNAPSHOT (Wired to 
org.apache.servicemix.bundles.xstream/1.4.7.1 which is being refreshed)
    org.apache.geronimo.specs.geronimo-jaspic_1.0_spec/1.1.0 (Should be wired 
to: org.apache.geronimo.specs.geronimo-osgi-registry/1.1.0 (through 
[org.apache.geronimo.specs.geronimo-jaspic_1.0_spec/1.1.0] osgi.wiring.package; 
filter:="(osgi.wiring.package=org.apache.geronimo.osgi.registry.api)"; 
resolution:=optional))
    org.apache.servicemix.bundles.jaxb-impl/2.2.1.1_2 (Bundle will be updated)
    org.apache.servicemix.bundles.xstream/1.4.7.1 (Should be wired to: 
woodstox-core-asl/4.4.1 (through 
[org.apache.servicemix.bundles.xstream/1.4.7.1] osgi.wiring.package; 
filter:="(osgi.wiring.package=com.ctc.wstx.stax)"; resolution:=optional))
    org.eclipse.jetty.jaspi/9.2.10.v20150310 (Wired to 
org.apache.geronimo.specs.geronimo-jaspic_1.0_spec/1.1.0 which is being 
refreshed)
    org.jvnet.jaxb2_commons.jaxb2-basics-runtime/0.6.4 (Wired to 
org.apache.servicemix.bundles.jaxb-impl/2.2.1.1_2 which is being refreshed)

So I think this is good already. As jline has no dynamic import any more there 
is no problem with camel. So while we should fix camel it is not so urgent 
anymore.


> Karaf refreshes a lot of unrelated bundles during feature installation
> ----------------------------------------------------------------------
>
>                 Key: KARAF-3888
>                 URL: https://issues.apache.org/jira/browse/KARAF-3888
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-feature
>    Affects Versions: 4.0.0
>            Reporter: Ievgen Tarasov
>            Assignee: Christian Schneider
>             Fix For: 4.0.1
>
>         Attachments: karaf-refresh-problem
>
>
> To reproduce the problem:
> {noformat}
> feature:repo-add mvn:org.apache.cxf.karaf/apache-cxf/3.1.1/xml/features
> feature:repo-add mvn:org.apache.camel.karaf/apache-camel/2.15.2/xml/features
> feature:repo-add 
> mvn:org.apache.activemq/activemq-karaf/5.11-SNAPSHOT/xml/features
> feature:install activemq
> feature:install activemq-client
> feature:install camel
> feature:install cxf
> feature:install -v -t cxf-ws-policy
> {noformat}
> The result of the last command is in file [^karaf-refresh-problem] which is 
> attached to this bug. In short:
> {noformat}
> karaf@root()> feature:install -v -t cxf-ws-policy
> Adding features: cxf-ws-policy/[3.1.1,3.1.1]
> No deployment change.
>   Bundles to refresh:
>     activemq-karaf/5.11.0.SNAPSHOT (Wired to 
> org.apache.activemq.activemq-osgi/5.11.0.SNAPSHOT which is being refreshed)
>     javax.mail/1.4.4 (Wired to 
> org.apache.activemq.activemq-osgi/5.11.0.SNAPSHOT which is being refreshed)
>     jline/2.12.1 (Wired to org.apache.activemq.activemq-osgi/5.11.0.SNAPSHOT 
> which is being refreshed)
>     net.sf.ehcache/2.9.0 (Wired to org.apache.aries.transaction.manager/1.0.0 
> which is being refreshed)
>     (about 90 other bundles)
> karaf@root()>
> {noformat}
> In the same time, if I slightly change the order of feature installation 
> (install activemq-client _before_ activemq), then the refresh doesn't happen:
> {noformat}
> karaf@root()> feature:install -v -t cxf-ws-policy
> Adding features: cxf-ws-policy/[3.1.1,3.1.1]
> No deployment change.
> karaf@root()> 
> {noformat}
> Note regarding AMQ vesrion - I'm using 5.11-SNAPSHOT because of a fix for 
> another bundle refresh problem: https://issues.apache.org/jira/browse/AMQ-5821



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to