Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Stopping server startup

I want to stop an embedded server from starting as soon as one of its
contexts fails to start.

The problem is, the lifecycle wrapper on the entire server catches all
exceptions. So, if I install a lifecycle listener on the contexts that
throws a RuntimeException in the event of an error, the server
lifecycle catches it and keeps on going.

I can't throw some other Throwable, since there's no signature for
that on the lifecycle listener.

Back to the top