Ability to load CND definitions from the same bundle.
authorMathieu Baudier <mbaudier@argeo.org>
Thu, 31 Jul 2014 11:24:53 +0000 (11:24 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Thu, 31 Jul 2014 11:24:53 +0000 (11:24 +0000)
git-svn-id: https://svn.argeo.org/commons/trunk@7184 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

server/runtime/org.argeo.server.jackrabbit/src/main/java/org/argeo/jackrabbit/JackrabbitWrapper.java

index 86fc95b62522277f461fdbc7a4a66aa6162c03ef..f9f04c4cbd0de9bc469f0a827ae55f4ae624d249 100644 (file)
@@ -337,8 +337,10 @@ public class JackrabbitWrapper extends JcrRepositoryWrapper implements
                if (exportedPackage != null) {
                        exportingBundle = exportedPackage.getExportingBundle();
                } else {
-                       throw new ArgeoException("No OSGi exporting package found for "
-                                       + resUrl);
+                       // assume this is in the same bundle
+                       exportingBundle = bundleContext.getBundle();
+//                     throw new ArgeoException("No OSGi exporting package found for "
+//                                     + resUrl);
                }
                return exportingBundle;
        }