Issue #1602 - WebAppContext Deployment fail should be on Throwable, not Exception

This commit is contained in:
Joakim Erdfelt 2018-01-09 11:58:57 -06:00
parent 3eb8b1d59b
commit 1440b2d1fa
4 changed files with 7 additions and 8 deletions

View File

@ -40,7 +40,6 @@ import org.eclipse.jetty.plus.jndi.NamingEntryUtil;
import org.eclipse.jetty.util.log.Log;
import org.eclipse.jetty.util.log.Logger;
import org.eclipse.jetty.webapp.AbstractConfiguration;
import org.eclipse.jetty.webapp.Configuration;
import org.eclipse.jetty.webapp.WebAppClassLoader;
import org.eclipse.jetty.webapp.WebAppContext;
import org.eclipse.jetty.xml.XmlConfiguration;

View File

@ -548,14 +548,14 @@ public class WebAppContext extends ServletContextHandler implements WebAppClassL
if (isLogUrlOnStart())
dumpUrl();
}
catch (Exception e)
catch (Throwable t)
{
//start up of the webapp context failed, make sure it is not started
LOG.warn("Failed startup of context "+this, e);
_unavailableException=e;
// 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);
if (isThrowUnavailableOnStartupException())
throw e;
throw t;
}
}

View File

@ -1,6 +1,6 @@
//
// ========================================================================
// Copyright (c) 1995-2018 Mort Bay Consulting Pty. Ltd.
// Copyright (c) 1995-2017 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0

View File

@ -1,6 +1,6 @@
//
// ========================================================================
// Copyright (c) 1995-2018 Mort Bay Consulting Pty. Ltd.
// Copyright (c) 1995-2017 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0