@Override protected void stopInternal() throws Exception { this.tomcatServer.stop(); this.tomcatServer.destroy(); }
@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 WebServerException { synchronized (this.monitor) { boolean wasStarted = this.started; try { this.started = false; try { stopTomcat(); this.tomcat.destroy(); } catch (LifecycleException ex) { // swallow and continue } } catch (Exception ex) { throw new WebServerException("Unable to stop embedded Tomcat", ex); } finally { if (wasStarted) { containerCounter.decrementAndGet(); } } } }
@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()); }
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 destroy() throws LifecycleException { tomcat.destroy(); try { waitForTomcatLifecycleState(LifecycleState.DESTROYED); } catch(InterruptedException e) { //Ignore } }
@Override public void stop() { try { tomcat.stop(); tomcat.destroy(); } catch (LifecycleException e) { throw new RuntimeException("Unable to stop tomcat ",e); } } }
@Override public void stop() { try { tomcat.stop(); tomcat.destroy(); } catch (LifecycleException e) { throw new RuntimeException("Unable to stop tomcat ",e); } } }
public void tearDown() throws Exception { super.tearDown(); if (server != null) { server.stop(); server.destroy(); server = null; } } }
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) { } }
protected void stopTomcat() throws Exception { try { tomcat.stop(); } catch (Exception e) { } try { tomcat.destroy(); } catch (Exception e) { } }
protected void stopTomcat() throws Exception { try { tomcat.stop(); } catch (Exception e) { } try { tomcat.destroy(); } catch (Exception 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(); } } }
public void shutdown() throws Throwable { if (tomcat.getServer() != null && tomcat.getServer().getState() != LifecycleState.DESTROYED) { if (tomcat.getServer().getState() != LifecycleState.STOPPED) { tomcat.stop(); } tomcat.destroy(); } } }
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()); }
private void stop(final Tomcat tomcat) throws LifecycleException { if (LifecycleState.STARTED.equals(tomcat.getServer().getState())) { tomcat.stop(); tomcat.destroy(); } }