本文共 1760 字,大约阅读时间需要 5 分钟。
今天新写了一个插件,用到了org.eclipse.emf.transaction,在产品配置种配置了以后仍然报错:
!ENTRY org.netliving.platforrm.workflow 4 0 2011-10-17 21:45:26.047
!MESSAGE !STACK 0org.osgi.framework.BundleException: The bundle "org.netliving.platforrm.workflow_1.0.0.beat [1486]" could not be resolved. Reason: Missing Constraint: Require-Bundle: org.eclipse.emf.transaction; bundle-version="1.4.0" at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1317) at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1301) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:319) at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:374) at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1067) at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:561) at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:546) at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:459) at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243) at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:440) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227) at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:337)!ENTRY org.eclipse.osgi 4 0 2011-10-17 21:45:26.063
!MESSAGE Bundle reference:file:/E:/project/plugin/UniPlatform-init/ was not resolved.
解决办法:
Run->Run Configurations...,选择相应的程序后选择Plugin标签,点击“Add Required Plugins”即可。
转载地址:http://enmhj.baihongyu.com/