@Override public void undeployConfig() { if (this.context != null) { this.context.removeServletMapping("/"); this.tomcatServer.getHost().removeChild(this.context); } }
/** * Remove a webapp from our control. * Entry point for the admin webapp, and other JMX Context controllers. * @param contextName The context name */ public void unmanageApp(String contextName) { if(isServiced(contextName)) { deployed.remove(contextName); host.removeChild(host.findChild(contextName)); } }
/** * Remove a webapp from our control. * Entry point for the admin webapp, and other JMX Context controllers. */ public void unmanageApp(String contextName) { if(isServiced(contextName)) { deployed.remove(contextName); host.removeChild(host.findChild(contextName)); } }
/** * Remove a webapp from our control. * Entry point for the admin webapp, and other JMX Context controlers. */ public void unmanageApp(String contextPath) { if(isServiced(contextPath)) { deployed.remove(contextPath); host.removeChild(host.findChild(contextPath)); } }
/** * Remove a webapp from our control. * Entry point for the admin webapp, and other JMX Context controllers. */ public void unmanageApp(String contextName) { if(isServiced(contextName)) { deployed.remove(contextName); host.removeChild(host.findChild(contextName)); } }
/** * Remove a webapp from our control. * Entry point for the admin webapp, and other JMX Context controllers. */ public void unmanageApp(String contextName) { if(isServiced(contextName)) { deployed.remove(contextName); host.removeChild(host.findChild(contextName)); } }
/** * Remove a webapp from our control. * Entry point for the admin webapp, and other JMX Context controllers. * @param contextName The context name */ public void unmanageApp(String contextName) { if(isServiced(contextName)) { deployed.remove(contextName); host.removeChild(host.findChild(contextName)); } }
/** * Remove a webapp from our control. * Entry point for the admin webapp, and other JMX Context controllers. */ public void unmanageApp(String contextName) { if(isServiced(contextName)) { deployed.remove(contextName); host.removeChild(host.findChild(contextName)); } }
/** * Remove a webapp from our control. * Entry point for the admin webapp, and other JMX Context controllers. */ public void unmanageApp(String contextName) { if(isServiced(contextName)) { deployed.remove(contextName); host.removeChild(host.findChild(contextName)); } }
/** * Remove a webapp from our control. * Entry point for the admin webapp, and other JMX Context controllers. */ public void unmanageApp(String contextName) { if(isServiced(contextName)) { deployed.remove(contextName); host.removeChild(host.findChild(contextName)); } }
public void removeWsContainer(String path) { if (path == null) return; // assure context root with a leading slash if (!path.startsWith("/")) path = "/" + path; StandardContext context = webserviceContexts.remove(path); try { context.stop(); context.destroy(); } catch (Exception e) { throw new RuntimeException(e); } Host host = (Host) context.getParent(); host.removeChild(context); }
/** * Undeploy all deployed applications. */ protected void undeployApps() { if (log.isDebugEnabled()) log.debug(sm.getString("hostConfig.undeploying")); // Soft undeploy all contexts we have deployed DeployedApplication[] apps = (DeployedApplication[]) deployed.values().toArray(new DeployedApplication[0]); for (int i = 0; i < apps.length; i++) { try { host.removeChild(host.findChild(apps[i].name)); } catch (Throwable t) { log.warn(sm.getString ("hostConfig.context.remove", apps[i].name), t); } } deployed.clear(); }
private void undeployModules() { Host host = tomcat.getHost(); while (!deployed.isEmpty()) { String applicationName = deployed.pop(); Container child = host.findChild("/" + applicationName); tomcat.getHost().removeChild(child); } }
private static void undeploy(StandardContext standardContext, ContextInfo contextInfo) { if (isReady(contextInfo.deployer)) { contextInfo.deployer.unmanageApp(standardContext.getName()); } else if (contextInfo.host != null) { contextInfo.host.removeChild(standardContext); } }
public void removeWsContainer(String path) { if (path == null) return; // assure context root with a leading slash if (!path.startsWith("/")) path = "/" + path; if (TomcatHelper.isTomcat7() && TomcatHelper.isStopping()) { return; } Context context = webserviceContexts.remove(path); if (WEBSERVICE_OLDCONTEXT_ACTIVE) { try { context.destroy(); context.stop(); } catch (Exception e) { throw new TomEERuntimeException(e); } Host host = (Host) context.getParent(); host.removeChild(context); } // else let tomcat manages its context }
/** * {@inheritDoc} */ @Override public void undeployWebApps(AppInfo appInfo) throws Exception { for (WebAppInfo webApp : appInfo.webApps) { ContextInfo contextInfo = getContextInfo(webApp.host, webApp.contextRoot); if (contextInfo != null && contextInfo.deployer != null) { StandardContext standardContext = contextInfo.standardContext; HostConfig deployer = contextInfo.deployer; if (deployer != null) { deployer.unmanageApp(standardContext.getPath()); } else if (contextInfo.host != null) { contextInfo.host.removeChild(standardContext); } deleteDir(new File(standardContext.getServletContext().getRealPath(""))); removeContextInfo(standardContext); } } }
private void undeploy(DeployedApplication app) { if (log.isInfoEnabled()) log.info(sm.getString("hostConfig.undeploy", app.name)); Container context = host.findChild(app.name); try { host.removeChild(context); } catch (Throwable t) { ExceptionUtils.handleThrowable(t); log.warn(sm.getString ("hostConfig.context.remove", app.name), t); } deployed.remove(app.name); }
private void undeploy(DeployedApplication app) { if (log.isInfoEnabled()) log.info(sm.getString("hostConfig.undeploy", app.name)); Container context = host.findChild(app.name); try { host.removeChild(context); } catch (Throwable t) { ExceptionUtils.handleThrowable(t); log.warn(sm.getString ("hostConfig.context.remove", app.name), t); } deployed.remove(app.name); }
@Override public void undeploy(Archive<?> archive) throws DeploymentException { SipStandardContext sipStandardContext = sipStandardContextProducer.get(); if (sipStandardContext != null) { standardHost.removeChild(sipStandardContext); try{ sipStandardContext.stop(); sipStandardContext.destroy(); } catch (Exception e){ log.log(Level.WARNING, "Problem to undeploy archive "+sipStandardContext.getApplicationName(), e); } if (sipStandardContext.getUnpackWAR()) { deleteUnpackedWAR(sipStandardContext); } } }
private void undeploy(DeployedApplication app) { if (log.isInfoEnabled()) log.info(sm.getString("hostConfig.undeploy", app.name)); Container context = host.findChild(app.name); try { host.removeChild(context); } catch (Throwable t) { ExceptionUtils.handleThrowable(t); log.warn(sm.getString ("hostConfig.context.remove", app.name), t); } deployed.remove(app.name); }