2011-07-06 61 views
0

运行我的OSGi应用程序 当我收到以下错误:软件包使用冲突:导入包:org.springframework.mail.javamail;版本= “0.0.0”

!ENTRY com.mypackage.commons 4 0 2011-07-06 15:52:21.841 
!MESSAGE 
!STACK 0 
org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Package uses conflict: Import-Package: org.springframework.mail.javamail; version="0.0.0" 
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1313) 
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1297) 
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:319) 
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:370) 
    at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1068) 
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:557) 
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:464) 
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:248) 
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:445) 
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220) 
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:330) 

请告知。

+0

任何建议家伙? –

回答

2

问题通过使用最新版本的org.springframework.context.support依赖关系解决。

+0

感谢分享:) – kiduxa