This post has NOT been accepted by the mailing list yet.
I am working with an application that is built as a number of bundles, which are all loading and working fine. One of them uses a JDBC DataSources that it looks up from the environment using pax-jdbc-config. Again, this all works fine, when I simply drop the individual bundles into the deploy folder.
However, when I package the same bundles into a KAR file (using karaf-maven-plugin) and deploy that KAR, it fails to find the DataSource and so the bundle fails to load, which means the KAR fails to load.