Issue #1602 - Reverting AbstractLifeCycle changes per review
This commit is contained in:
parent
4ba0277c37
commit
f3c36f804a
|
@ -206,7 +206,7 @@ public abstract class AbstractLifeCycle implements LifeCycle
|
|||
listener.lifeCycleStopped(this);
|
||||
}
|
||||
|
||||
protected void setFailed(Throwable th)
|
||||
private void setFailed(Throwable th)
|
||||
{
|
||||
_state = __FAILED;
|
||||
if (LOG.isDebugEnabled())
|
||||
|
|
|
@ -553,8 +553,7 @@ public class WebAppContext extends ServletContextHandler implements WebAppClassL
|
|||
// start up of the webapp context failed, make sure it is not started
|
||||
LOG.warn("Failed startup of context "+this, t);
|
||||
_unavailableException=t;
|
||||
setAvailable(false); // webapp cannot be accessed
|
||||
setFailed(t); // be a proper Jetty LifeCycle participant and notify listeners of failure
|
||||
setAvailable(false); // webapp cannot be accessed (results in status code 503)
|
||||
if (isThrowUnavailableOnStartupException())
|
||||
throw t;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue