Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-3888

Karaf refreshes a lot of unrelated bundles during feature installation

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: 4.0.1
    • Component/s: karaf
    • Labels:
      None

      Description

      To reproduce the problem:

      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
      

      The result of the last command is in file karaf-refresh-problem which is attached to this bug. In short:

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

      In the same time, if I slightly change the order of feature installation (install activemq-client before activemq), then the refresh doesn't happen:

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

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                chris@die-schneider.net Christian Schneider
                Reporter:
                eugene.tarasov Ievgen Tarasov
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: