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

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        29d 10h 11m 1 Jean-Baptiste Onofré 05/Oct/12 12:45
        Jean-Baptiste Onofré made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Show
        Jean-Baptiste Onofré added a comment - Fixed on karaf-2.2.x: http://svn.apache.org/viewvc?view=revision&revision=1394453
        Show
        Jean-Baptiste Onofré added a comment - Fixed on karaf-2.3.x: http://svn.apache.org/viewvc?view=revision&revision=1394398
        Jean-Baptiste Onofré made changes -
        Fix Version/s 3.0.0 [ 12316040 ]
        Jean-Baptiste Onofré made changes -
        Fix Version/s 2.2.10 [ 12322541 ]
        Fix Version/s 2.3.0 [ 12320554 ]
        Fix Version/s 3.0.0 [ 12316040 ]
        Jean-Baptiste Onofré made changes -
        Assignee Andreas Pieber [ pieber ] Jean-Baptiste Onofré [ jbonofre ]
        Andreas Pieber made changes -
        Assignee Andreas Pieber [ pieber ]
        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.
        Gareth Collins made changes -
        Field Original Value New Value
        Attachment KARAF-1796.txt [ 12543969 ]
        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.
        Gareth Collins created issue -

          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