Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

After Jetty Update to 9.4.x: Missing Constraint: Require-Capability: osgi.extender; filter:="(osgi.extender=osgi.serviceloader.processor)"

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.

like image 271
flavio.donze Avatar asked Sep 15 '25 13:09

flavio.donze


2 Answers

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

  • org.apache.aries.spifly.dynamic.bundle
  • org.apache.aries.util
  • asm-all

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.

like image 96
flavio.donze Avatar answered Sep 18 '25 08:09

flavio.donze


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

like image 35
BJ Hargrave Avatar answered Sep 18 '25 08:09

BJ Hargrave