Re: Unresolved dependency system.bundle

2013-09-05 Thread Roland
or myresolver.resolve(NO_SYSTEM_BUNDLE); -- View this message in context: http://apache-felix.18485.x6.nabble.com/Unresolved-dependency-system-bundle-tp5004643p5004832.html Sent from the Apache Felix - Users mailing list archive at Nabble.com. --

Re: Unresolved dependency system.bundle

2013-08-23 Thread Roland
After a long search, I finally found a solution. DataModelHelper datamodel = repoAdmin.getHelper(); ... resolver.add(datamodel.createResource(systembundle)); ... resolver.resolve(); -- View this message in context: http://apache-felix.18485.x6.nabble.com/Unresolved-dependency-system-bundle

Re: Unresolved dependency system.bundle

2013-08-22 Thread Roland
My first shot in the dark is like this: ... Collection capabilities = bundle.adapt(BundleRevision.class).getCapabilities(null); for(org.osgi.resource.Capability capability : capabilities) { CapabilityImpl cap = new CapabilityImpl(capability.getNamespa

Re: Unresolved dependency system.bundle

2013-08-22 Thread Roland
I just realized that there is a third class with the same name. I'm totally confused! org.osgi.service.obr.Capability -- View this message in context: http://apache-felix.18485.x6.nabble.com/Unresolved-dependency-system-bundle-tp5004643p5004651.html Sent from the Apache Felix - Users mailing li

Re: Unresolved dependency system.bundle

2013-08-22 Thread Roland
ok...in the class "ConvertedResource" line 41 I found following code: ... // convert capabilities org.osgi.service.obr.Capability[] c = resource.getCapabilities(); if (c != null) { capabilities = new Capability[c.length]; for (int i = 0; i < c.length

Re: Unresolved dependency system.bundle

2013-08-22 Thread Roland
Is there already a wrapper for both classes? -- View this message in context: http://apache-felix.18485.x6.nabble.com/Unresolved-dependency-system-bundle-tp5004643p5004646.html Sent from the Apache Felix - Users mailing list archive at Nabble.com. --

Re: Unresolved dependency system.bundle

2013-08-22 Thread Roland
To avoid confusion, one class should be renamed. -- View this message in context: http://apache-felix.18485.x6.nabble.com/Unresolved-dependency-system-bundle-tp5004643p5004644.html Sent from the Apache Felix - Users mailing list archive at Nabble.com. --

Unresolved dependency system.bundle

2013-08-22 Thread Roland
Hello OSGi-experts, I have an OBR including my Felix-launcher (systembundle) and some other bundles. My Felix-Launcher loads the OBR and deploys the bundles. To take care that the systembundle is not deployed for a second time I have to exclude the Felix-launcher in the OBR before I deploy all othe