cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Vuijst <Charles.Vui...@infor.com>
Subject DOSGi 1.2 Multi Bundle - Java JDK 1.5 / 1.6 - Package uses conflict: Import-Package: org.apache.cxf; version="2.2.0"
Date Thu, 02 Sep 2010 14:45:40 GMT
Hi,



I've followed the "Setting up Equinox" for DOSGi 1.2 Multi Bundle as described on http://cxf.apache.org/dosgi-multi-bundle-setup.html.



It seems to be running on my system (Windows XP) with JDK 1.5. However, with JDK 1.6 I found:



Package uses conflict: Import-Package: org.apache.cxf; version="2.2.0"



Here follows my steps:



My Java setup is as follows:

JDK 1.5 at: C:\java\jdk1.5.0_13

JDK 1.6 at: C:\java\jdk1.6.0_20



I unzipped the DOSGi multi-bundle distribution to:

c:\apache-cxf-dosgi-ri-1.2



I installed Eclipse 3.5 at:

C:\java\eclipse\eclipse-jee-galileo-SR2-win32\eclipse



Later tried it with Eclipse 3.6. Issue I have is identical with 3.6, so continuing with 3.5
here.



I created the config.ini in:

C:\java\eclipse\eclipse-jee-galileo-SR2-win32\eclipse\dosgi_conf



config.ini now lists as indicated by the setup instructions:



org.ops4j.pax.web.session.timeout=30

osgi.bundles=\

 org.eclipse.osgi.services@start,\<mailto:org.eclipse.osgi.services@start,\>

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/geronimo-annotation_1.0_spec-1.1.1.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/geronimo-activation_1.1_spec-1.0.2.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/geronimo-javamail_1.4_spec-1.2.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/geronimo-ws-metadata_2.0_spec-1.1.2.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/com.springsource.org.apache.commons.logging-1.1.1.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/com.springsource.org.jdom-1.0.0.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/spring-core-2.5.6.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/spring-beans-2.5.6.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/spring-context-2.5.6.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/com.springsource.org.aopalliance-1.0.0.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/com.springsource.slf4j.api-1.5.10.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/com.springsource.slf4j.jcl-1.5.10.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/spring-aop-2.5.6.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/spring-osgi-io-1.2.0.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/spring-osgi-core-1.2.0.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/spring-osgi-extender-1.2.0.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/pax-web-service-0.5.1.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.bundles.jaxb-impl-2.1.6_1.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.bundles.wsdl4j-1.6.1_1.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.bundles.xmlsec-1.3.0_1.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.bundles.xmlschema-1.4.3_1.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.bundles.asm-2.2.3_1.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.bundles.xmlresolver-1.2_1.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.bundles.neethi-2.0.4_1.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.bundles.woodstox-3.2.7_1.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.bundles.commons-pool-1.5.4_1.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.specs.saaj-api-1.3-1.3.0.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.specs.stax-api-1.0-1.3.0.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.specs.jaxb-api-2.1-1.3.0.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.specs.jaxws-api-2.1-1.3.0.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/org.apache.servicemix.specs.jsr311-api-1.0-1.3.0.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/cxf-bundle-minimal-2.2.9.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/cxf-dosgi-ri-discovery-local-1.2.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/cxf-dosgi-ri-dsw-cxf-1.2.jar@start,\

 c:/apache-cxf-dosgi-ri-1.2/dosgi_bundles/cxf-dosgi-ri-topology-manager-1.2.jar@start,\



I opened a command prompt at:

C:\java\eclipse\eclipse-jee-galileo-SR2-win32\eclipse



At that command prompt I entered:

C:\java\jdk1.5.0_13\bin\java.exe -jar plugins/org.eclipse.osgi_3.5.2.R35x_v20100126.jar -console
-configuration dosgi_conf



The result is that all bundles are ACTIVE except:

- com.springsource.slf4j.jcl_1.5.10 is RESOLVED: OK for a fragment bundle.



I close the container.



Now I try the same with the JDK 1.6 as follows:

At that command prompt I entered:

C:\java\jdk1.6.0_20\bin\java.exe -jar plugins/org.eclipse.osgi_3.5.2.R35x_v20100126.jar -console
-configuration dosgi_conf



The result is that all bundles are ACTIVE except:

- com.springsource.slf4j.jcl_1.5.10 is RESOLVED: OK for a fragment bundle.

- cxf-dosgi-ri-dsw-cxf_1.2.0 is INSTALLED



Trying to start cxf-dosgi-ri-dsw-cxf_1.2.0 results in:



org.osgi.framework.BundleException: The bundle 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:1313)

        at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1297)

        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:309)

        etc.



It therefore remains installed, which is not OK.



Just some guesses:

- Most cxf bundles seem to be build against JDK 1.6.0_16 except for e.g. cxf-bundle-minimal-2.2.9:
Build-Jdk: 1.5.0_22. See their included MANIFEST.MF files. I Tried the same runs with JDK
1.6.0_16, no luck there either.

- My impression is that one of the differences between 1.5 and 1.6 could be caused by JAXWS.



As I like to use the multi bundle distribution, and use JDK 1.6 (1.5 is End of Service Life
(EOSL) since November 3, 2009), any insight on this issue might help,



Best regards,



Charles Vuijst






Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message