Hi Robin-

Most OSGi containers support two formats for deployed bundles: 1) as a
jar file with a META-INF/MANIFEST.MF file containing OSGi manifest
headers, and 2) as an "exploded jar", which basically means a folder
containing a META-INF/MANIFEST.MF file with OSGi headers, plus either
compiled class files or internal jars (which are not, themselves,
bundles).

The Restlet distribution, in the "lib" directory, contains a mixture
of bundles in "jar" form (the org.restlet.*.jar bundles), as well as
third-party bundles in "exploded jar" format.  Notice that all these
folders have META-INF folders in them, containing the OSGi metadata.
My guess is that they do this because not all third-party libraries
are valid OSGi bundles (such as json.jar), and an easy way to
bundle-ize them without having to re-jar their contents is to use the
exploded-jar format.

In order to install one of these exploded folders, you need to use the
path to the folder, not the library jars inside them.

Hope that helps...

-Dave Fogel

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2383508

Reply via email to