eclipse - Jetty 更新到 9.4.x 后 : Missing Constraint: Require-Capability: osgi. 扩展器;过滤器:="(osgi.extender=osgi.serviceloader.processor)"

标签 eclipse jetty osgi jetty-9

从 Jetty 9.3.x 更新到 9.4.x 后,我在启动 OSGi Framework 时收到以下验证消息:

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

我不知道我必须添加哪些包?

已包含在发布中(以及许多其他内容):

  • 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

在对话框中单击“确定”后,服务器启动且没有错误消息。
我希望这个问题会在 Jetty 9.4.5 中得到解决,但它仍然存在。

最佳答案

我必须下载以下三个包并将其添加到目标:

Apache Aries SPI Fly 中所述网站,Getting SPI Fly 部分。

因为我不想操纵字节码,所以我选择“用于动态编织”。

有关该主题的更多信息可以在 blog 中找到.

关于eclipse - Jetty 更新到 9.4.x 后 : Missing Constraint: Require-Capability: osgi. 扩展器;过滤器:="(osgi.extender=osgi.serviceloader.processor)",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43775025/

相关文章:

gradle - 如何在 Gretty 插件中选择特定的 jetty 版本

java - 如何从ClassLoader获取Bundle对象? (Java、OSGI)

eclipse - 在Eclipse中轻松打开现有的非Eclipse项目?

python - 语法错误 : Non-UTF-8 code starting with '\x82'

java - 类和库未包含在 Google App Engine Web 应用程序中?

java - 使用 Ant 构建在 xml 中替换值/版本/日期的占位符

java - 让 maven 启动 jetty (Tapestry 教程)

tomcat - 在 Servlet 中获取服务器证书/SSL

java - 如何调试外部 OSGI 包?

java - OSGi - 将 bundle 的类添加到特定的类加载器