`

eclipse报错Missing Constraint: Require-Bundle: org.eclipse.emf.transaction;

 
阅读更多

今天新写了一个插件,用到了org.eclipse.emf.transaction,在产品配置种配置了以后仍然报错:

!ENTRY org.netliving.platforrm.workflow 4 0 2011-10-17 21:45:26.047
!MESSAGE
!STACK 0
org.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”即可。

分享到:
评论
2 楼 hellostory 2013-03-07  
tanghanlin 写道
这样也可以,在安装插件时,勾选:
Contact all update sites during install to find required software


谢谢!
1 楼 tanghanlin 2012-12-05  
这样也可以,在安装插件时,勾选:
Contact all update sites during install to find required software

相关推荐

Global site tag (gtag.js) - Google Analytics