void stop() throws Exception { final org.apache.catalina.Server server = this.server; final Connector connector = this.connector; this.server = null; this.connector = null; if (engineName != null) { activeEngines.remove(engineName); engineName = null; } if (server == null || !started) { return; } try { logger.info("Stopping an embedded Tomcat: {}", toString(server)); server.stop(); } catch (Exception e) { logger.warn("Failed to stop an embedded Tomcat: {}", toString(server), e); } postStopTask.accept(connector); }
/** * Stop the server. * * @throws LifecycleException */ public void stop() throws LifecycleException { getServer(); server.stop(); }
/** * Stop the server. * * @throws LifecycleException */ public void stop() throws LifecycleException { getServer(); server.stop(); }
/** * Stop the server. * * @throws LifecycleException */ public void stop() throws LifecycleException { getServer(); server.stop(); }
/** * Stop the server. * * @throws LifecycleException Stop error */ public void stop() throws LifecycleException { getServer(); server.stop(); }
/** * Stop the server. * * @throws LifecycleException */ public void stop() throws LifecycleException { getServer(); server.stop(); }
/** * Stop the server. * * @throws LifecycleException Stop error */ public void stop() throws LifecycleException { getServer(); server.stop(); }
/** * Stop the server. * * @throws LifecycleException */ public void stop() throws LifecycleException { getServer(); server.stop(); }
/** * Stop the server. * * @throws LifecycleException */ public void stop() throws LifecycleException { getServer(); server.stop(); }
public void run() { try { if (tomcat != null) { tomcat.getServer().stop(); } } catch (LifecycleException exception) { throw new RuntimeException("WARNING: Cannot Stop Tomcat " + exception.getMessage(), exception); } } });
public void run() { try { if (tomcat != null) { tomcat.getServer().stop(); } } catch (LifecycleException exception) { throw new RuntimeException("WARNING: Cannot Stop Tomcat " + exception.getMessage(), exception); } } });
s.stop(); } catch (LifecycleException e) { log.error("Catalina.stop: ", e);
s.stop(); s.destroy();
s.stop(); s.destroy();
s.stop(); s.destroy();
s.stop(); s.destroy();
s.stop(); s.destroy();