我的osgi项目的另一个问题。我收到此错误代码:
!会议2015-10-26 10:50:01.671 ----------------------------------------------- eclipse.buildId = unknown java.version = 1.8.0_60 java.vendor = Oracle 公司BootLoader常量:OS = win32,ARCH = x86_64,WS = win32, NL = de_DE命令行参数:-dev 文件:C:/Users/Dennis/workspace/.metadata/.plugins/org.eclipse.pde.core/delicomFirstOSGIPlugin/dev.properties -os win32 -ws win32 -arch x86_64 -consoleLog -console
!ENTRY de.delicom.testosgi 4 0 2015-10-26 10:50:02.318!MESSAGE FrameworkEvent ERROR!STACK 0 org.osgi.framework.BundleException: 加载bundle激活器时出错。在 org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:711) 在 org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:941) 在 org.eclipse.osgi.internal.framework.EquinoxBundle $ EquinoxModule.startWorker(EquinoxBundle.java:318) 在org.eclipse.osgi.container.Module.doStart(Module.java:571)at org.eclipse.osgi.container.Module.start(Module.java:439)at org.eclipse.osgi.container.ModuleContainer $ ContainerStartLevel.incStartLevel(ModuleContainer.java:1582) 在 org.eclipse.osgi.container.ModuleContainer $ ContainerStartLevel.incStartLevel(ModuleContainer.java:1562) 在 org.eclipse.osgi.container.ModuleContainer $ ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533) 在 org.eclipse.osgi.container.ModuleContainer $ ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476) 在 org.eclipse.osgi.container.ModuleContainer $ ContainerStartLevel.dispatchEvent(ModuleContainer.java:1) 在 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) 在 org.eclipse.osgi.framework.eventmgr.EventManager $ EventThread.run(EventManager.java:340) 引起:java.lang.ClassNotFoundException: 无法找到de.delicom.testosgi.Activator.java de.delicom.testosgi_1.0.0.qualifier at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:439) 在 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352) 在 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344) 在 org.eclipse.osgi.internal.framework.BundleContextImpl.loadBundleActivator(BundleContextImpl.java:754) 在 org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:706) ... 11更多根异常:java.lang.ClassNotFoundException: 无法找到de.delicom.testosgi.Activator.java de.delicom.testosgi_1.0.0.qualifier at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:439) 在 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352) 在 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344) 在 org.eclipse.osgi.internal.framework.BundleContextImpl.loadBundleActivator(BundleContextImpl.java:754) 在 org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:706) 在 org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:941) 在 org.eclipse.osgi.internal.framework.EquinoxBundle $ EquinoxModule.startWorker(EquinoxBundle.java:318) 在org.eclipse.osgi.container.Module.doStart(Module.java:571)at org.eclipse.osgi.container.Module.start(Module.java:439)at org.eclipse.osgi.container.ModuleContainer $ ContainerStartLevel.incStartLevel(ModuleContainer.java:1582) 在 org.eclipse.osgi.container.ModuleContainer $ ContainerStartLevel.incStartLevel(ModuleContainer.java:1562) 在 org.eclipse.osgi.container.ModuleContainer $ ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533) 在 org.eclipse.osgi.container.ModuleContainer $ ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476) 在 org.eclipse.osgi.container.ModuleContainer $ ContainerStartLevel.dispatchEvent(ModuleContainer.java:1) 在 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) 在 org.eclipse.osgi.framework.eventmgr.EventManager $ EventThread.run(EventManager.java:340)
!ENTRY org.eclipse.osgi 4 0 2015-10-26 10:50:02.322!MESSAGE Bundle de.delicom.testosgi_1.0.0.qualifier [11]无效。
My Manifest看起来像:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Testosgi
Bundle-SymbolicName: de.delicom.testosgi
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: de.delicom.testosgi.Activator
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Import-Package: org.osgi.framework;version="1.3.0"
Bundle-ClassPath: . ,
soapui-4.0.1.0.jar,
xmlbeans-2.6.0.jar,
xmlbeans-xpath-2.6.0.jar,
src/
Bundle-ActivationPolicy: lazy
外部jar我已经添加到Buildpath和Classpath。它们也在引用的库中。
有人有想法吗?谢谢
答案 0 :(得分:0)
> org.osgi.framework.BundleException:加载捆绑激活器时出错 如果您忘记定义“bin /”(或“target / ..”)文件夹,这是典型的运行时错误 在您的项目中:META-INF / MANIFEST.MF:
Bitmap