OSGI捆绑参考未解决

时间:2019-03-12 11:46:10

标签: java-8 migration osgi upgrade osgi-bundle

我的团队正在维护一个基于Eclipse 3.8.2和Java 1.7的软件。由于我们试图添加需要Java 1.8的功能,因此我要负责将整个环境升级到Java 1.8,并且在此过程中还必须升级到新版本的Eclipse。因此,我要做的就是复制工作区,在Eclipse 4.9.0中打开它,并解决Eclipse给我带来的所有错误。除其他外,我们正在使用OSGi,在新环境中启动应用程序时遇到了麻烦。 老实说,我对OSGi并没有真正的经验。我已经尝试搜索我遇到的错误,但是在该问题上找不到很多有用的材料。

无论如何,当我启动应用程序时,我从OSGi中得到了很多错误,这些包引用都无法解决。我不确定哪个清单文件需要这些捆绑包,以及如何将它们包括在内。我进行了三重检查,运行配置具有所有插件,软件的旧版和工作版都具有,所以似乎不是。

我得到的踪迹是:

!SESSION 2019-03-12 11:13:16.942 -----------------------------------------------
eclipse.buildId=M20120208-0800
java.version=1.8.0_202
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_AT
Framework arguments:  -product at.jku.mevss.product.server
Command-line arguments:  -product at.jku.mevss.product.server -data D:\Eclipse Workspace for Java 8/../RCPClients/MCC -dev file:D:/Eclipse Workspace for Java 8/.metadata/.plugins/org.eclipse.pde.core/(S1) - Monitoring Server Console + Services/dev.properties -os win32 -ws win32 -arch x86 -consoleLog

!ENTRY org.eclipse.osgi 2 0 2019-03-12 11:13:17.682
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2019-03-12 11:13:17.682
!MESSAGE Bundle reference:file:/D:/Eclipse Workspace for Java 8/at.jku.ase.ulm/ was not resolved.
!SUBENTRY 2 at.jku.ase.ulm 2 0 2019-03-12 11:13:17.682
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(&(osgi.ee=JavaSE)(version=1.8))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2019-03-12 11:13:17.682
!MESSAGE Bundle reference:file:/D:/Eclipse Workspace for Java 8/at.jku.mevss.lib/ was not resolved.
!SUBENTRY 2 at.jku.mevss.lib 2 0 2019-03-12 11:13:17.682
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(&(osgi.ee=JavaSE)(version=1.8))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2019-03-12 11:13:17.682
!MESSAGE Bundle reference:file:/D:/Eclipse Workspace for Java 8/at.jku.mevss.product/ was not resolved.
!SUBENTRY 2 at.jku.mevss.product 2 0 2019-03-12 11:13:17.682
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.8))(&(osgi.ee=JavaSE)(version=1.7)))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2019-03-12 11:13:17.682
!MESSAGE Bundle reference:file:/D:/Eclipse Workspace for Java 8/at.jku.mevss.eventdistributor.ui/ was not resolved.
!SUBENTRY 2 at.jku.mevss.eventdistributor.ui 2 0 2019-03-12 11:13:17.682
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(&(osgi.ee=JavaSE)(version=1.8))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2019-03-12 11:13:17.682
!MESSAGE Bundle reference:file:/D:/Eclipse Workspace for Java 8/at.jku.mevss.eventdistributor.processor.core/ was not resolved.
!SUBENTRY 2 at.jku.mevss.eventdistributor.processor.core 2 0 2019-03-12 11:13:17.682
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.8))(&(osgi.ee=JavaSE)(version=1.7)))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2019-03-12 11:13:17.682
!MESSAGE Bundle reference:file:/D:/Eclipse Workspace for Java 8/at.jku.mevss.eventdistributor.server.impls/ was not resolved.
!SUBENTRY 2 at.jku.mevss.eventdistributor.server.impls 2 0 2019-03-12 11:13:17.682
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.8))(&(osgi.ee=JavaSE)(version=1.7)))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2019-03-12 11:13:17.682
!MESSAGE Bundle reference:file:/D:/Eclipse Workspace for Java 8/at.jku.mevss.checking.service.core/ was not resolved.
!SUBENTRY 2 at.jku.mevss.checking.service.core 2 0 2019-03-12 11:13:17.682
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(&(osgi.ee=JavaSE)(version=1.8))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2019-03-12 11:13:17.682
!MESSAGE Bundle reference:file:/D:/Eclipse Workspace for Java 8/at.jku.mevss.eventpublisher.core/ was not resolved.
!SUBENTRY 2 at.jku.mevss.eventpublisher.core 2 0 2019-03-12 11:13:17.682
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(&(osgi.ee=JavaSE)(version=1.8))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2019-03-12 11:13:17.682
!MESSAGE Bundle reference:file:/D:/Eclipse Workspace for Java 8/at.jku.mevss.eventdistributor.server/ was not resolved.
!SUBENTRY 2 at.jku.mevss.eventdistributor.server 2 0 2019-03-12 11:13:17.682
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(&(osgi.ee=JavaSE)(version=1.8))".
.
.
.
!SUBENTRY 2 at.jku.mevss.checking.lib 2 0 2019-03-12 11:13:17.714
!MESSAGE Missing required bundle at.jku.mevss.eventdistributor.core_0.1.0.
!SUBENTRY 2 at.jku.mevss.checking.lib 2 0 2019-03-12 11:13:17.714
!MESSAGE Missing required bundle at.jku.mevss.checking.service.core_0.1.0.
!SUBENTRY 2 at.jku.mevss.checking.lib 2 0 2019-03-12 11:13:17.714
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.8))(&(osgi.ee=JavaSE)(version=1.7)))".

!ENTRY org.eclipse.osgi 4 0 2019-03-12 11:13:17.729
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Application "at.jku.mevss.server" could not be found in the registry. The applications available are: org.eclipse.ant.core.antRunner, org.eclipse.equinox.app.error.
    at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:248)
    at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
An error has occurred. See the log file
D:\Eclipse Workspace for Java 8\.metadata\.plugins\org.eclipse.pde.core\(S1) - Monitoring Server Console + Services\1552385597136.log.

我删除了很多行,因为这占用了太多空间。 迁移到新的Eclipse时,我是否犯了一个错误?我忘了修改某些清单文件吗?新的Java / Eclipse版本是否需要更改某些设置?

谢谢!

0 个答案:

没有答案