首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >OSGI knopflerfish缺少包或无法解决这些包的问题

OSGI knopflerfish缺少包或无法解决这些包的问题
EN

Stack Overflow用户
提问于 2016-11-10 16:14:49
回答 1查看 255关注 0票数 0

我有一个包含一些jars依赖项的包,但是我不知道为什么当我运行这个包时,它不能解析来自slf4j.jar的包。

这是knopflerfish显示的错误

代码语言:javascript
复制
WARNING: Prefs file removed in background /root/.java/.userPrefs/prefs.xml
[stderr] ## DEBUG: errors - FrameworkErrorEvent bundle #43
[stderr] ## DEBUG: errors - FrameworkErrorEvent throwable: 
[stderr] org.osgi.framework.BundleException: Bundle#43, unable to resolve: Missing package(s) or can not resolve all of the them:
org.slf4j -- Could not resolve exporting bundle - org.slf4j;version=1.6.1 Bundle[id=29,gen=0].

这是我的bundle manifest

代码语言:javascript
复制
Manifest-Version: 1.0
Bundle-SymbolicName: MapMatching
Export-Package: its.fac.mapmatching.bundle, its.fac.mapmatching.impl, 
 its.fac.mapmatching.thread, its.fac.mapmatching.utils
Bundle-Version: 1.0.4
Bundle-Name: MapMatching
Bundle-ClassPath: .
Bundle-Activator: its.fac.mapmatching.bundle.Activator
Bundle-ManifestVersion: 3
Import-Package: its.fac.mapmatching.services, its.fac.mapmatching.type
 s, its.fac.poti.api.services, org.postgis, org.slf4j, its.fac.mapmatc
 hing.factory, its.fac.poti.api.types, org.osgi.framework, org.osgi.ut
 il.tracker
EN

回答 1

Stack Overflow用户

发布于 2016-11-10 16:34:55

您需要安装一个导出org.slf4j包的包。我不知道konpflerfish中是否有标准的捆绑包。在Apache karaf中,我们使用pax-logging来实现这一目的。我认为logback也可以提供这一点。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40522766

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档