X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.init%2Fsrc%2Forg%2Fargeo%2Finit%2Fosgi%2FOsgiBootDiagnostics.java;h=b56b6b070abe7908df3059327573a90d5f54af0b;hb=1a65fa72abac6a458139240efa281138aac9ef2b;hp=72d9a3e64f683b991530e5132c2bce07fcc78529;hpb=b7d8618ce593bbeca7e311d32a4d98988e27f877;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.init/src/org/argeo/init/osgi/OsgiBootDiagnostics.java b/org.argeo.init/src/org/argeo/init/osgi/OsgiBootDiagnostics.java index 72d9a3e64..b56b6b070 100644 --- a/org.argeo.init/src/org/argeo/init/osgi/OsgiBootDiagnostics.java +++ b/org.argeo.init/src/org/argeo/init/osgi/OsgiBootDiagnostics.java @@ -21,6 +21,7 @@ class OsgiBootDiagnostics { public OsgiBootDiagnostics(BundleContext bundleContext) { this.bundleContext = bundleContext; } + /* * DIAGNOSTICS */ @@ -42,6 +43,17 @@ class OsgiBootDiagnostics { if (unresolvedBundles.size() != 0) { OsgiBootUtils.warn("Unresolved bundles " + unresolvedBundles); } + + // try to start unresolved bundles in order to trigger diagnostics + // (this should not have side-effects since unresolved bundles won't be able to + // start) + for (Bundle b : unresolvedBundles) { + try { + b.start(); + } catch (Exception e) { + e.printStackTrace(); + } + } } /** List packages exported twice. */