Hi Bilgin, This package is in chemistry-opencmis-client-impl-0.7.0.jar but unfortunately it's not exported. I don't know opencmis at all, but maybe the import in camel-cmis is wrong ... Try adding "! org.apache.chemistry.opencmis.client.runtime;" to your imports in the pom (guess you use the bundle-plugin...) and check if the bundle can start without errors. Otherwise you have to create SMX-bundles of chemistry-opencmis-client-impl-0.7.0.jar with the corrected exports ... I can help you with this.
Regards Andi -----Original Message----- From: Bilgin Ibryam [mailto:bibr...@gmail.com] Sent: Dienstag, 17. Juli 2012 07:20 To: dev@camel.apache.org Subject: Re: OSGI dependencies question Thanks Andi, that helped. Now the only remaining error is: No export found to match org.apache.chemistry.opencmis.client.runtime (imported by mvn:org.apache.camel/camel-cmis/2.11-SNAPSHOT) Any suggestions how to find its bundle? Bilgin On 16 July 2012 21:40, Kuhtz, Andreas <andreas.ku...@atos.ch> wrote: > Hi Bilgin, > > The missing javax.xml.ws.soap (..and others ...) comes from this bundle: > <bundle > start-level='10'>mvn:org.apache.servicemix.specs/org.apache.servicemix > .specs.jaxws-api-2.2/1.9.0</bundle> > > I'm not sure if it works for you because I don't know what karaf > version you use. You might check the cxf-features file (feature with > name cxf-specs to find more dependencies, > http://central.maven.org/maven2/org/apache/cxf/karaf/apache-cxf/...). > > Regards, > Andi > > -----Original Message----- > From: Bilgin Ibryam [mailto:bibr...@gmail.com] > Sent: Montag, 16. Juli 2012 20:28 > To: dev@camel.apache.org > Subject: OSGI dependencies question > > Hi all, > > I am working on CAMEL-4691 a CMIS component but have difficulties > adding the OSGI dependencies. Any help on the following points is > greatly > appreciated: > > 1. Is there any documentation on the format of features.xml 2. How do > you figure out if a dependency is available as osgi bundle, or as > ServiceMix bundle... > 3. The blocker: opencmis is already OSGI bundled > http://chemistry.apache.org/java/developing/dev-osgi.html so I added > the following lines in features.xml (I am not sure if it is correct) > > <feature name='camel-cmis' version='${project.version}' resolver='(obr)' > start-level='50'> > <feature version='${project.version}'>camel-core</feature> > <bundle > > dependency='true'>mvn:org.apache.chemistry.opencmis/chemistry-opencmis > -osgi-server/${cmis-bundle-version}</bundle> > <bundle>mvn:org.apache.camel/camel-cmis/${project.version}</bundle> > </feature> > > But when I try to validate the features, I get the following error: > > [WARNING] Failed to validate feature camel-cmis [WARNING] No export > found to match org.apache.chemistry.opencmis.client.runtime (imported > by > mvn:org.apache.camel/camel-cmis/2.11-SNAPSHOT) > [WARNING] No export found to match javax.xml.ws.soap (imported by > mvn:org.apache.chemistry.opencmis/chemistry-opencmis-osgi-server/0.5.0 > ) [WARNING] No export found to match javax.xml.ws (imported by > mvn:org.apache.chemistry.opencmis/chemistry-opencmis-osgi-server/0.5.0 > ) [WARNING] No export found to match javax.xml.ws.handler (imported by > mvn:org.apache.chemistry.opencmis/chemistry-opencmis-osgi-server/0.5.0 > ) > [WARNING] No export found to match > org.apache.chemistry.opencmis.client.api;version="[0.5,1)" (imported > by > mvn:org.apache.camel/camel-cmis/2.11-SNAPSHOT) > [WARNING] No export found to match javax.jws (imported by > mvn:org.apache.chemistry.opencmis/chemistry-opencmis-osgi-server/0.5.0 > ) > > How to find out if these dependencies are available? > > Thanks > > Bilgin >