Hi, Am 12.10.2012 um 01:01 schrieb lessonz:
> > At runtime, it iterates over those embedded bundles and installs them via > org.osgi.framework.BundleContext.installBundle(String location). The > problem stems from the org.restlet.lib.org.json dependency. It is not a > bundle. So, trying to install it results in a BundleException. That makes > sense. The problem is I'm not sure how I'm supposed to inject it into my > embedded instance of Felix. See, if I deploy it to a regular standalone > instance of felix in it's ./bundle directory, everything appears to work > just fine. How do I replicate that behavior via the maven-bundle-plugin > and/or programmatically? Are you sure that deployment to the bundle folder really works out-of-the-box ? Or do you have something else installed, which is able to convert a library into a bundle before installing it ? If you want to deploy as you intend the data supplied to the BundleContext.installBundle method must be a valid bundle. So you have to turn that library into a bundle at build time. Now, this org.restlet.lib.org.json library (I don't know it) looks like it is just packing up the normal org.json library. Maybe the Geronimo org.json bundle might help here as a replacement ? Regards Felix --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

