4

After updating from Jetty 9.3.x to 9.4.x I'm getting the following validate message when I launch my OSGi Framework launch:

Missing Constraint: Require-Capability: osgi.extender; filter:="(osgi.extender=osgi.serviceloader.processor)"
Missing Constraint: Require-Capability: osgi.extender; filter:="(osgi.extender=osgi.serviceloader.registrar)"

enter image description here

I can't figure out the bundles I have to add?

Already included in the launch (among many others):

  • org.eclipse.jetty.client
  • org.eclipse.jetty.continuation
  • org.eclipse.jetty.deploy
  • org.eclipse.jetty.http
  • org.eclipse.jetty.io
  • org.eclipse.jetty.rewrite
  • org.eclipse.jetty.security
  • org.eclipse.jetty.server
  • org.eclipse.jetty.servlet
  • org.eclipse.jetty.servlets
  • org.eclipse.jetty.util
  • org.eclipse.jetty.webapp
  • org.eclipse.jetty.xml
  • org.eclipse.osgi
  • org.eclipse.osgi.services
  • org.eclipse.osgi.util

The server launches without error messages after clicking "OK" in the dialog.
I hoped this issue would be fixed in Jetty 9.4.5 but it remains.

flavio.donze
  • 7,432
  • 9
  • 58
  • 91

2 Answers2

5

I had to download and add the following three bundles to the target:

As described on the Apache Aries SPI Fly website, section Getting SPI Fly.

Since I do not want to manipulate the bytecode I choose "For use with dynamic weaving".

More information on the topic can be found in this blog.

flavio.donze
  • 7,432
  • 9
  • 58
  • 91
3

It appears you need an implementation of the OSGi Service Loader Mediator specification. Try Apache Aries SPI Fly.

BJ Hargrave
  • 9,324
  • 1
  • 19
  • 27