There is two ways to resolve this "run-time" dependency. That I know of:
Option 1 (preferred):
a. Find a bundle that exports org.postgresql.*
b. Start it in the ServiceMix (OSGi container)
c. Add in a Import-Package: org.postgresql.* to your manifest.
d. Restart (uninstall and install -s) your bundle.
a. Add the PostgreSQL Driver into your bundle (jar).
b.Create Bundle-ClassPath: that references the jar.
thank you for your quick response, just wanted to document my solution here. This is what did the trick for me:
The following is also a great resource for finding osgi bundles: