[英]missing OSGi jar in eclipse mars with liberty profile
I'm using eclipse mars 4.5.2 for mac OS X 10.11. 我正在Mac OS X 10.11中使用Eclipse Mars 4.5.2。 I create a simple OSGi bundle project and it is missing osgi.core.jar in its classpath. 我创建了一个简单的OSGi捆绑项目,它的类路径中缺少osgi.core.jar。
The import org.osgi cannot be resolved 导入org.osgi无法解析
mac-mars classpath screenshot mac-mars classpath屏幕截图
BUT When I do the same actions in eclipse luna 4.4.2 on windows with websphere classic - osgi.core.jar is on its place. 但是,当我在使用websphere classic的Windows上的Eclipse luna 4.4.2中执行相同的操作时,osgi.core.jar就位。
windows-luna classpath screenshot Windows-Luna类路径屏幕截图
What I need to do, to resolve OSGi dependency? 我需要做什么来解决OSGi依赖性?
On mac I have the latest ibm websphere liberty developer tools for mars and liberty javaee7 8.5.5.9 (18.03.2016), may be its a bug? 在Mac上,我拥有适用于火星和自由javaee7 8.5.5.9(18.03.2016)的最新ibm Websphere自由开发者工具,可能是错误吗?
UPD: my manifest on both bundles: UPD:我的两个清单上的清单:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: IgLoginBundle
Bundle-SymbolicName: IgLoginBundle
Bundle-Version: 1.0
Bundle-Activator: activator.Activator
Import-Package: org.osgi.framework
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Export-Package: activator
(I'm new to OSGi and just trying to implement a custom user registry for liberty) (我是OSGi的新手,只是为了实现自由而尝试实现自定义用户注册表)
I have the latest ibm websphere liberty developer tools for mars and liberty javaee7 8.5.5.9 (18.03.2016) 我拥有适用于火星和自由javaee7 8.5.5.9(18.03.2016)的最新ibm Websphere自由开发人员工具
I think the issue is the version of Liberty you are using. 我认为问题是您使用的Liberty版本。 The EE7 edition does not come with the OSGi feature you needed by default. EE7版本没有默认情况下所需的OSGi功能。
Try to install the Liberty Profile V8.5.5.9 with OSGi Application . 尝试使用OSGi Application安装Liberty Profile V8.5.5.9 。 You should be able to download it via IBM WebSphere Liberty developer tools for Mars from the eclipse server view. 您应该能够通过Eclipse服务器视图中的IBM Mars开发人员工具下载它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.