Hi Emmanuel, It's the order of dependencies and the specification of the start level that's the issue, right? It should not really be needed to start bundles in a certain order, but there a number of dependencies of DOSGi that need to be started in a specific order to work properly. This is caused by the fact that these libraries are not developed with OSGi in mind and make certain assumptions about their environment :(
You can also control the start level from another bundle, through the StartLevel service [1], so you could write a little bundle that sets the start level for the applicable bundle correctly before starting them up which would alleviate the need to change anything in a config file... On the other hand you might find it easier to us a modified version of the single-bundle distro. I don't fully remember all the details of why it's configured the way it is, but if you want you can either create an alternative single-bundle distro by for your own use based on the pom.xml that is used by DOSGi [2] or you might want to provide a patch to DOSGi that works for you and I am then happy to look at if we can take that into the DOSGi code base... See also the build pages for more info [3]. Cheers, David [1] http://www.osgi.org/javadoc/r4v42/org/osgi/service/startlevel/StartLevel.html [2] http://svn.apache.org/repos/asf/cxf/dosgi/trunk/distribution/single-bundle/pom.xml [3] http://cxf.apache.org/dosgi-build.html On 9 March 2011 16:02, Emmanuel Ligne <eli...@yahoo.fr> wrote: > Hi David > > Thx for the reply. > The multi-bundle distro as described needs a manual fixing of the > conf.properties of the Felix distro, what > I cannot do in my environment: my env is automatically built by maven, based > on dependencies. Even felix is installed as a runtime dependency. If I > include solely dependencies to cxf-bundle-minimal, > cxf-dosgi-ri-discovery-local and cxf-dosgi-ri-dsw-cxf as suggested, the > intent-map is not read and services not published as WebServices. > I tried to add a dependency to cxf-dosgi-felix-ri-profiles, this changed > things, now spring complains that it cannot find the namespacehandler for > cxf.apache.org/policy -> seems like something is not safe in the loading > order of jars ? > My problem is that I cannot modify the felix configuration file, as felix is > seen as a simple "dependency" and installed as a jar by maven -> the manual > fixing of the conf.properties of the felix is not acceptable. > -> so I started to try the singlebundle, but no lock with it due to the fact > that it says it depends on the things it already integrates. > Is there a way to generate a singlebundle-like version of DOSGI that would > not say so ? OTW my comprehension is that this *should* be packaged this > way, as the singlebundle obvious does *not* depend on the jars it already > includes. Right ? > > Best regards > Emmanuel > > -- > View this message in context: > http://cxf.547215.n5.nabble.com/DOSGi-singlebundle-jar-exposing-dependencies-tp3413919p3415816.html > Sent from the cxf-user mailing list archive at Nabble.com. >