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;
}