vijay
vijay

Reputation: 75

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

from Karaf cache log i have receive the following error multiple times when i'm deploy bundle in 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)

Upvotes: 0

Views: 3077

Answers (1)

imcat
imcat

Reputation: 158

The bundle org.eclipse.jetty.jndi has dependency on javax.mail; version="[1.4.0,2.0.0)". There are 2 reasons for this error here.

  1. None of the Bundle is exporting the javax.mail or host didn't add package javax.mail as SYSTEM_PACKAGE.
  2. The host has added javax.mail as SYSTEM_PACKAGE but the version might not lie between 1.4.0 and 2.0.0.

P.S : The host here is Equinox

Upvotes: 1

Related Questions