2

我正在尝试在 Karaf 上安装两个捆绑包。对于其中一个捆绑包,我收到错误消息,当我看到 bundle:diag 时,我收到以下消息。在日志中也出现同样的情况。类似的捆绑包已经部署并且具有相同的依赖项。第一个正在工作,但对于第二个捆绑包,我遇到了错误。有什么想法吗?

opendaylight-user@root>bundle:diag

视频网 (421)

状态:GracePeriod Blueprint 2/10/16 6:07 PM 缺少依赖项:(objectClass=org.osgi.service.http.HttpService)

2016-02-10 23:54:07.113 GMT+00:00 [Blueprint Extender: 3] 错误 oaabcBlueprintContainerImpl - 由于未解决的依赖关系 [(objectClass=org.osgi. service.http.HttpService)] java.util.concurrent.TimeoutException: null at org.apache.aries.blueprint.container.BlueprintContainerImpl$1.run(BlueprintContainerImpl.java:336) [org.apache.aries.blueprint.core:1.4 .0] 在 org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48) [org.apache.aries.blueprint.core:1.4.0]

4

1 回答 1

5

The error means that your bundle has a mandatory reference to a service with the interface org.osgi.service.http.HttpService.

So you need to install a bundle that provides this service. In karaf this service is normally provided by pax-web. It can be installed using:

feature:install http
于 2016-02-11T06:12:06.583 回答