Hi Michael, On Tue, 2021-04-27 at 14:51 +0000, Lescisin, Michael wrote: > Could someone kindly explain how Sling Launchpad can be reconfigured so > that the executable JAR will terminate if org.apache.felix.http.jetty > throws a java.net.BindException?
By looking at the code, it seems that the bundle's activator errors out. If that is the case, the org.apache.felix.http.jetty bundle should not start, and remain in a RESOLVED state. To validate that, you could write a small bundle with a BundleListener [1] that checks when the bundle goes through the STARTING -> STOPPING - > RESOLVED state. I think this is not fool-proof, because you can't be certain why the bundle is stopping. A better way would be for the felix http jetty bundle to expose a way of notifying other bundles when binding fails. Thanks, Robert [1]: https://docs.osgi.org/javadoc/osgi.core/7.0.0/org/osgi/framework/BundleListener.html