Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-8672

Missing Constraint: Require-Capability: osgi.service; filter="(objectClass=com.codahale.metrics.MetricRegistry)"

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Commons Scheduler 2.7.4
    • Fix Version/s: None
    • Component/s: Commons
    • Labels:
      None

      Description

      Hello,

      I'm using org.apache.commons.scheduler 2.7.4 and io.dropwizard.metrics.core 3.2.6. When i launch the application from eclipse, o.a.c.scheduler complains that: Missing Constraint: Require-Capability: osgi.service; filter="(objectClass=com.codahale.metrics.MetricRegistry)". The com.codahale.metrics.MetricRegistry class is defined and exported by io.dropwizard.metrics.core but dropwizard.metrics.core never declare that it provide this class as Capability (i checked a few versions of io.dropwizard.metrics.core). Is it a bug that sling.commons.scheduler requires such capability ? I havent seen this error when i was running on eclipse oxygen but with recent upgrade to eclipse 201903, this shows up.

      About our running env:

      org.eclipse.osgi 3.14.0.v20190517-1309

      org.apache.felix.scr 2.1.14.v20190123-1619

      pax-web-extender-whiteboard 7.2.10

      jetty 9.4.18.v20190429

       

        Attachments

        1. launchErr.PNG
          18 kB
          Nhut Thai Le

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              lnthai2002 Nhut Thai Le
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: