org.osgi.framework.BundleException:无法解析模块:org.eclipse.jetty.plus

问题描述 投票:0回答:1

从Karaf缓存日志我已经多次收到以下错误,当我在karaf部署捆绑

!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)
java osgi osgi-bundle osgi-fragment
1个回答
1
投票

捆绑org.eclipse.jetty.jndi依赖于javax.mail; version="[1.4.0,2.0.0)"。这里有两个原因导致此错误。

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

P.S:这里的主人是Equinox

© www.soinside.com 2019 - 2024. All rights reserved.