gpt4 book ai didi

java - org.osgi.framework.BundleException : Could not resolve module: org. eclipse.jetty.plus

转载 作者:行者123 更新时间:2023-12-02 10:13:00 26 4
gpt4 key购买 nike

从 Karaf 缓存日志中,当我在 karaf 中部署 bundle 时,我多次收到以下错误

!ENTRY org.eclipse.jetty.jndi 4 0 2019-02-21 16:27:11.500
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.jetty.jndi [77]
Unresolved requirement: Import-Package: javax.mail; version="[1.4.0,2.0.0)"

at org.eclipse.osgi.container.Module.start(Module.java:444)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1634)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1614)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1585)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1528)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

最佳答案

bundle org.eclipse.jetty.jndi依赖于javax.mail;版本=“[1.4.0,2.0.0)”。造成此错误的原因有 2 个。

  1. 所有 bundle 均未导出 javax.mail,或者主机未将包 javax.mail 添加为 SYSTEM_PACKAGE。
  2. 主机已添加 javax.mail 作为 SYSTEM_PACKAGE,但版本可能不在 1.4.0 和 2.0.0 之间。

P.S:这里的主机是 Equinox

关于java - org.osgi.framework.BundleException : Could not resolve module: org. eclipse.jetty.plus,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54860181/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com