title: Tomcat stop after failed deployment?
body: <p>I would like to stop Tomcat when a war deployment fails. Is there some hook or listener which could be used for that?</p>
  
  <p>I know, normally one would not make the container stop when a deployment fails. In my case I would like to implement a <a href="https://en.wikipedia.org/wiki/Fail-fast" rel="nofollow">Fail-fast</a> error model with Tomcat since there is currently no chance to replace the WAR with a fat jar with an embedded Servlet engine (e.g., Spring-Boot).</p>