I’v encountered a somewhat frustating problem.
Im using Apache Felix as my OSGi framework and Im also using Hibernate for persistency issues.
Im using the “osgi-bundle” version of Hibernate (com.springsource.org.hibernate-3.2.6.ga.jar). As far as I know this is the Hibernate Core with some additional osgi-metdata installed in the META-INF/MANIFEST.mf. This information (Package-Export and Package-Import) is vital for osgi systems.
My problem is that the Hibernate bundle cant find my JDBC-drivers. It feels very wrong to add Import statements to the springsource Hibernate bundle. There must be some better way to solve this.
I’ve encountered similar problem a while ago. The solution was to register jdbc-provider bundle and jdbc-user bundles as “buddies”. This is because one bundle can’t use classes (so jdbc drivers too) from another without explicitly declaring it. This was for Eclipse, so I assume it may help you.