Sling
  1. Sling
  2. SLING-408

Repository service not registered when using Equinox Declarative Services

    Details

      Description

      While trying to run the jcr/jackrabbit-server bundle inside Equinox with the Equinox Declarative Services and Configuration Admin implementations, I discovered, that the handling of ComponentFactories is different in the Equinox DS and Apache Felix DS:

      • Equinox DS seems to expect factory components to be set as immediate="false", while Felix DS expects immediate="true"
      • Equinox DS does not seem to start the services properly

      I am not sure, whether this is actually related to wrong implementation in Felix DS or a bug in Equinox DS. This will have to be investigated.

      Versions used:
      Equinox DS: org.eclipse.equinox.ds_1.0.0.v20070226.jar
      Felix DS: 1.0.0

        Issue Links

          Activity

          Felix Meschberger created issue -
          Felix Meschberger made changes -
          Field Original Value New Value
          Description While trying to run the jcr/jackrabbit-server bundle inside Equinox with the Equinox Declarative Services and Configuration Admin implementations, I discovered, that the handling of ComponentFactories is different in the Equinox DS and Apache Felix DS:

             * Equinox DS seems to expect factory components to be set as immediate="false", while Felix DS expects immediate="true"
             * Equinox DS does not seem to start the services properly

          I am not sure, whether this is actually related to wrong implementation in Felix DS or a bug in Equinox DS. This will have to be investigated.
          While trying to run the jcr/jackrabbit-server bundle inside Equinox with the Equinox Declarative Services and Configuration Admin implementations, I discovered, that the handling of ComponentFactories is different in the Equinox DS and Apache Felix DS:

             * Equinox DS seems to expect factory components to be set as immediate="false", while Felix DS expects immediate="true"
             * Equinox DS does not seem to start the services properly

          I am not sure, whether this is actually related to wrong implementation in Felix DS or a bug in Equinox DS. This will have to be investigated.

          Versions used:
            Equinox DS: org.eclipse.equinox.ds_1.0.0.v20070226.jar
            Felix DS: 1.0.0
          Felix Meschberger made changes -
          Link This issue depends on FELIX-593 [ FELIX-593 ]
          Hide
          Felix Meschberger added a comment -

          The Apache Felix Declarative Services and maven-scr-plugin assume wrong default and accepted values for component factories. After fixing these implementations, the Sling jcr/jackrabbit-server and jcr/jackrabbit-client bundles (as well as others using component factories with explicit immediate attribute values must be fixed.

          Component factories not using explicit immediate attribute declarations need not be fixed as default value handling is correct after fixing the issues.

          See FELIX-593 for details.

          Show
          Felix Meschberger added a comment - The Apache Felix Declarative Services and maven-scr-plugin assume wrong default and accepted values for component factories. After fixing these implementations, the Sling jcr/jackrabbit-server and jcr/jackrabbit-client bundles (as well as others using component factories with explicit immediate attribute values must be fixed. Component factories not using explicit immediate attribute declarations need not be fixed as default value handling is correct after fixing the issues. See FELIX-593 for details.
          Felix Meschberger made changes -
          Workflow jira [ 12430108 ] no-reopen-closed,doc-test-required [ 12475702 ]
          Hide
          Felix Meschberger added a comment -

          The second issue has in fact been another wrong implementation in the Felix DS implementation (see FELIX-1416).

          Show
          Felix Meschberger added a comment - The second issue has in fact been another wrong implementation in the Felix DS implementation (see FELIX-1416 ).
          Felix Meschberger made changes -
          Link This issue requires FELIX-1416 [ FELIX-1416 ]
          Hide
          Felix Meschberger added a comment -

          Finally fixed this in the embedded server (Rev. 887137) and client bundles (Rev. 887138)

          Show
          Felix Meschberger added a comment - Finally fixed this in the embedded server (Rev. 887137) and client bundles (Rev. 887138)
          Felix Meschberger made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s JCR Jackrabbit Server 2.0.6 [ 12314067 ]
          Resolution Fixed [ 1 ]
          Felix Meschberger made changes -
          Fix Version/s  JCR Jackrabbit Client 2.0.4 [ 12314442 ]
          Affects Version/s JCR API 2.0.2 [ 12313235 ]
          Affects Version/s JCR Jackrabbit Client 2.0.2 [ 12313240 ]
          Affects Version/s JCR Jackrabbit Server 2.0.4 [ 12313501 ]
          Carsten Ziegeler made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Gavin made changes -
          Workflow no-reopen-closed,doc-test-required [ 12475702 ] Copy of no-reopen-closed,doc-test-required [ 12763890 ]
          Gavin made changes -
          Workflow Copy of no-reopen-closed,doc-test-required [ 12763890 ] no-reopen-closed,doc-test-required [ 12767251 ]
          Gavin made changes -
          Link This issue depends on FELIX-593 [ FELIX-593 ]
          Gavin made changes -
          Link This issue depends upon FELIX-593 [ FELIX-593 ]
          Gavin made changes -
          Workflow no-reopen-closed,doc-test-required [ 12767251 ] re-open possible,doc-test-required [ 12789327 ]
          Gavin made changes -
          Workflow re-open possible,doc-test-required [ 12789327 ] no-reopen-closed,doc-test-required [ 12791800 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          582d 20h 49m 1 Felix Meschberger 04/Dec/09 10:04
          Resolved Resolved Closed Closed
          74d 21h 56m 1 Carsten Ziegeler 17/Feb/10 08:01

            People

            • Assignee:
              Felix Meschberger
              Reporter:
              Felix Meschberger
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development