简体   繁体   English

带有自由配置文件的日食火星中缺少OSGi jar

[英]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.

相关问题 Eclipse(Mars)中缺少“ Profile AS”-“ Java应用程序” - Missing “Profile AS” - “Java Application” in eclipse (mars) 自由配置文件:无法从OSGi捆绑软件中的运行时导入xml.jar中的类 - Liberty profile: Fail to import classes in xml.jar from runtime in OSGi bundle org.eclipse.OSGI jar中似乎缺少类? - class appears to be missing from the org.eclipse.OSGI jar? 如何在Eclipse MARS中制作.jar文件 - how to make .jar file in Eclipse MARS Eclipse Mars:无法解析导入org.osgi - Eclipse Mars : The import org.osgi cannot be resolved 如何更改Eclipse OSGi Framework Launcher使用的OSGi Launcher Jar - How to change the OSGi Launcher Jar used by the Eclipse OSGi Framework Launcher Eclipse Mars与WAS Liberty服务器8.5.5.6的集成无法识别某些Java EE 6已安装的功能 - Eclipse Mars integration with WAS Liberty server 8.5.5.6 does not recognize some Java EE 6 installed features Eclipse Mars:ANT任务引用缺少的SWT库 - Eclipse Mars: ANT Task references missing SWT library 由于缺少类路径引用,使用Eclipse Mars构建的Ant失败 - Ant build with Eclipse Mars fails due to missing classpath reference 如何在Eclipse Mars中安装OpenNTF Domino API 3.1.0以与OSGi插件一起使用? - How to install OpenNTF Domino API 3.1.0 in Eclipse Mars for use with OSGi plugins?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM