@Override public void stop() throws Exception { this.tomcatServer.stop(); this.port = 0; }
private void stopTomcat() throws LifecycleException { if (Thread.currentThread() .getContextClassLoader() instanceof TomcatEmbeddedWebappClassLoader) { Thread.currentThread().setContextClassLoader(getClass().getClassLoader()); } this.tomcat.stop(); }
@AfterClass(alwaysRun = true) public void tearDownGlobal() throws Exception { tomcat.stop(); }
@Override protected void stopInternal() throws Exception { this.tomcatServer.stop(); this.tomcatServer.destroy(); }
@AfterClass(alwaysRun = true) public void tearDownGlobal() throws Exception { tomcat.stop(); executor.shutdown(); }
@Override public void close() { super.close(); ServletManager.getInstance().removeServletContext(url.getPort()); try { tomcat.stop(); } catch (Exception e) { logger.warn(e.getMessage(), e); } } }
@Override public void close() { super.close(); ServletManager.getInstance().removeServletContext(url.getPort()); try { tomcat.stop(); } catch (Exception e) { logger.warn(e.getMessage(), e); } } }
@Override public synchronized void close() throws IOException { if (tomcat != null) { try { tomcat.stop(); tomcat.destroy(); } catch (LifecycleException le) { log.warn("Unexpected error while stopping", le); } finally { tomcat = null; } IOUtils.deleteRecursively(noSuchBaseDir); } }
@Override public void stop() throws Exception { tomcat.stop(); tomcat.destroy(); super.stop(); } }
void terminate() { if (tomcat.getServer().getState().isAvailable()) { try { tomcat.stop(); tomcat.destroy(); } catch (Exception e) { Loggers.get(EmbeddedTomcat.class).error("Fail to stop web server", e); } } deleteQuietly(tomcatBasedir()); }
@Override public void stop() { if (tomcat != null) { try { tomcat.stop(); } catch (Exception e) { throw new PippoRuntimeException(e, "Cannot stop Tomcat Server"); } } }
@Override public void destroy() throws Exception { this.tomcatServer.stop(); }
@Override protected void after() { try { this.tomcat.stop(); } catch (LifecycleException ex) { throw new RuntimeException(ex); } }
public void stop() { try { try { tomcat.stop(); } catch (Exception e) { Logger.getLogger(getClass().getName()).log(Level.WARNING, "Failed to stop tomcat instance", e); } try { tomcat.destroy(); } catch (Exception e) { Logger.getLogger(getClass().getName()).log(Level.WARNING, "Failed to destroy instance", e); } tomcat = null; } catch (Exception e) { throw new RuntimeException(e); } }
public void tearDown() throws Exception { super.tearDown(); if (server != null) { server.stop(); server.destroy(); server = null; } } }
protected void stopTomcat() throws Exception { try { tomcat.stop(); } catch (Exception e) { } try { tomcat.destroy(); } catch (Exception e) { } }
@Override public void close() { super.close(); ServletManager.getInstance().removeServletContext(url.getPort()); try { tomcat.stop(); } catch (Exception e) { logger.warn(e.getMessage(), e); } } }
public void tearDown() throws Exception { super.tearDown(); if (server != null) { server.stop(); server.destroy(); server = null; } } }
public void shutdown() throws Throwable { if (tomcat.getServer() != null && tomcat.getServer().getState() != LifecycleState.DESTROYED) { if (tomcat.getServer().getState() != LifecycleState.STOPPED) { tomcat.stop(); } tomcat.destroy(); } } }