I am using org.eclipse.osgi_3.5.0.v20090127-1630 and starting a small container with the OSGi Framework launch configuration. In this container I have the Spring framework and its minimal dependencies. All bundles start OK.
The Spring framwork ORM bundle has imports for the hibernate packages, all marked as optional. The hibernate (and only one bundle is in the container that exports hibernate bundles) bundle is started before the spring framework bundles using the run levels on the launch configuration.
The problem is that only some of the optional hibernate imports are actually resolved in the spring orm bundle. I can find no explanation for that behaviour at all. This is what is being exported by the hibernate bundle: