2011-07-06 102 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