Karaf
  1. Karaf
  2. KARAF-1796

Feature Install Sequence Should Be Install/Install/Install...Start/Start/Start

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.10, 2.3.0
    • Component/s: karaf-feature
    • Labels:
      None

      Description

      This issue is discussed in this thread:

      http://karaf.922171.n3.nabble.com/More-Questions-Mostly-On-Features-td4025892.html

      Currently the karaf feature feature installs bundles in this sequence - Install/Start/Install/Start/Install/Start. The problem with this sequence is that if the following bundles are installed late:
      + bundles which are optional imports of other bundles and/or
      + bundle fragments
      some bundles may not resolve with their optional imports and fragments.

      The solution is to install bundles in the following sequence - Install/Install/Install/Install...Start/Start/Start/Start. In that way all bundles are installed before any bundles are started and thus all optional imports and fragments should get resolved.

      1. KARAF-1796.txt
        4 kB
        Gareth Collins

        Activity

        Hide
        Gareth Collins added a comment -

        Attached is a patch for karaf 2.2.9 which works for me.

        Show
        Gareth Collins added a comment - Attached is a patch for karaf 2.2.9 which works for me.
        Hide
        Andreas Pieber added a comment -

        The idea/concern sounds reasonable to me; I'll give it a more detailed shot later this week.

        Show
        Andreas Pieber added a comment - The idea/concern sounds reasonable to me; I'll give it a more detailed shot later this week.
        Show
        Jean-Baptiste Onofré added a comment - Fixed on karaf-2.3.x: http://svn.apache.org/viewvc?view=revision&revision=1394398
        Show
        Jean-Baptiste Onofré added a comment - Fixed on karaf-2.2.x: http://svn.apache.org/viewvc?view=revision&revision=1394453

          People

          • Assignee:
            Jean-Baptiste Onofré
            Reporter:
            Gareth Collins
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development