You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Freeman Fang <fr...@gmail.com> on 2011/08/10 12:26:13 UTC

Re: The bundle "cxf-dosgi-ri-dsw-cxf_1.2.0 [25]" could not be resolved

Hi,

This kind of "Package uses conflict comes from the scenario" that,  
let's say,
bundle A import-package org.apache.cxf 2.2.0, bundle A also import- 
package x.y.z
bunde B export-package  x.y.z with "use" directive like  
uses:="org.apache.cxf" and also import-package org.apache.cxf with  
version 2.3.0.
Let's say bundle B already get resolved and started.
When resolve bundle A, it will use export-package x.y.z from bundle B,  
but  as bundle B export-package  x.y.z uses:="org.apache.cxf" and  
bundle B get resolved to import org.apache.cxf  2.3.0, so it's not  
meet bundle A's restriction which need org.apache.cxf 2.2.0, then you  
see such exception.

The root cause is that you install some bundles which need different  
cxf versions, also those bundles has dependency with each other, you  
need figure it out from your bundles and fix it.

Freeman
On 2011-8-10, at 上午10:44, Richard wrote:

> !ENTRY cxf-dosgi-ri-dsw-cxf 4 0 2011-08-10 10:39:45.187
> !MESSAGE
> !STACK 0
> org.osgi.framework.BundleException: The bundle "cxf-dosgi-ri-dsw- 
> cxf_1.2.0
> [25]" could not be resolved. Reason: Package uses conflict: Import- 
> Package:
> org.apache.cxf; version="2.2.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 2 0 2011-08-10 10:39:45.359
> !MESSAGE The following is a complete list of bundles which are not  
> resolved,
> see the prior log entry for the root cause if it exists:
> !SUBENTRY 1 org.eclipse.osgi 2 0 2011-08-10 10:39:45.359
> !MESSAGE Bundle cxf-dosgi-ri-dsw-cxf_1.2.0 [25] was not resolved.
> !SUBENTRY 2 cxf-dosgi-ri-dsw-cxf 2 0 2011-08-10 10:39:45.359
> !MESSAGE Missing imported package org.apache.cxf.dosgi.dsw_1.2.0.
> !SUBENTRY 2 cxf-dosgi-ri-dsw-cxf 2 0 2011-08-10 10:39:45.359
> !MESSAGE Missing imported package  
> org.apache.cxf.dosgi.dsw.decorator_1.2.0.
> !SUBENTRY 2 cxf-dosgi-ri-dsw-cxf 2 0 2011-08-10 10:39:45.359
> !MESSAGE Missing imported package  
> org.apache.cxf.dosgi.dsw.handlers_1.2.0.
> !SUBENTRY 2 cxf-dosgi-ri-dsw-cxf 2 0 2011-08-10 10:39:45.359
> !MESSAGE Missing imported package org.apache.cxf.dosgi.dsw.qos_1.2.0.
> !SUBENTRY 2 cxf-dosgi-ri-dsw-cxf 2 0 2011-08-10 10:39:45.359
> !MESSAGE Missing imported package  
> org.apache.cxf.dosgi.dsw.service_1.2.0.
> !SUBENTRY 2 cxf-dosgi-ri-dsw-cxf 2 0 2011-08-10 10:39:45.359
> !MESSAGE Missing imported package  
> org.osgi.service.remoteserviceadmin_1.0.0.
>
> id	State       Bundle
> 0	ACTIVE      org.eclipse.osgi_3.6.1.R36x_v20100806
> 1	ACTIVE      org.springframework.aop_2.5.6
> 2	ACTIVE      org.apache.servicemix.bundles.neethi_2.0.4.1
> 3	ACTIVE      org.springframework.core_2.5.6
> 4	ACTIVE      org.springframework.osgi.io_1.2.0
> 5	ACTIVE      org.apache.geronimo.specs.geronimo- 
> javamail_1.4_spec_1.2.0
> 6	ACTIVE      HelloWorldImpl_1.0.0
> 7	ACTIVE      org.springframework.osgi.extender_1.2.0
> 8	RESOLVED    com.springsource.slf4j.jcl_1.5.10
> 	            Master=19
> 9	ACTIVE      com.springsource.org.aopalliance_1.0.0
> 10	ACTIVE      org.springframework.osgi.core_1.2.0
> 11	ACTIVE      org.apache.servicemix.bundles.xmlschema_1.4.3.1
> 12	ACTIVE      com.springsource.org.apache.commons.logging_1.1.1
> 13	ACTIVE      org.springframework.context_2.5.6
> 14	ACTIVE      org.eclipse.osgi.services_3.2.100.v20100503
> 15	ACTIVE      org.apache.servicemix.bundles.asm_2.2.3.1
> 16	ACTIVE      HelloWorldInterface_1.0.0
> 17	ACTIVE      org.springframework.beans_2.5.6
> 18	ACTIVE      org.apache.servicemix.bundles.xmlresolver_1.2.0.1
> 19	ACTIVE      com.springsource.slf4j.api_1.5.10
> 	            Fragments=8
> 20	ACTIVE      javax.servlet_2.5.0.v200910301333
> 21	ACTIVE      org.apache.servicemix.bundles.commons-pool_1.5.4.1
> 22	ACTIVE      org.apache.servicemix.bundles.wsdl4j_1.6.1.1
> 23	ACTIVE      org.apache.cxf.bundle-minimal_2.2.9
> 24	ACTIVE      org.apache.geronimo.specs.geronimo- 
> activation_1.1_spec_1.0.2
> 25	INSTALLED   cxf-dosgi-ri-dsw-cxf_1.2.0
> 26	ACTIVE      org.apache.servicemix.specs.jaxws-api-2.1_1.3.0
> 27	ACTIVE      org.apache.servicemix.specs.jaxb-api-2.1_1.3.0
> 28	ACTIVE      org.apache.servicemix.specs.stax-api-1.0_1.3.0
> 29	ACTIVE      org.apache.servicemix.specs.saaj-api-1.3_1.3.0
> 30	ACTIVE      com.springsource.org.jdom_1.0.0
>
>
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/The-bundle-cxf-dosgi-ri-dsw-cxf-1-2-0-25-could-not-be-resolved-tp4684366p4684366.html
> Sent from the cxf-issues mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com