/** * {@inheritDoc} */ @Override public void afterStop(StandardContext standardContext) { if (isIgnored(standardContext)) return; ContextInfo contextInfo = getContextInfo(standardContext); if (contextInfo != null && contextInfo.appInfo != null && contextInfo.deployer == null && getAssembler().getDeployedApplications().contains(contextInfo.appInfo)) { try { getAssembler().destroyApplication(contextInfo.appInfo.path); } catch (Exception e) { logger.error("Unable to stop web application " + standardContext.getPath() + ": Exception: " + e.getMessage(), e); } } removeContextInfo(standardContext); }
if (deployedApplication.isModified()) { try { getAssembler().destroyApplication(deployedApplication.appInfo.path); } catch (Exception e) { logger.error("Unable to application " + deployedApplication.appInfo.path + ": Exception: " + e.getMessage(), e); getAssembler().createApplication(appInfo);
if (deployedApplication.appInfo != null) { // can happen with badly formed config try { getAssembler().destroyApplication(deployedApplication.appInfo.path); } catch (final Exception e) { logger.error("Unable to application " + deployedApplication.appInfo.path, e); getAssembler().createApplication(appInfo);
boolean destroyFromTomcat = contextInfo != null && getAssembler().getDeployedApplications().contains(contextInfo.appInfo); if (destroyFromTomcat && isUnDeployable(contextInfo)) { contextInfo.appInfo.properties.setProperty("tomee.destroying", "true"); try { getAssembler().destroyApplication(contextInfo.appInfo.path); } catch (final Exception e) { logger.error("Unable to stop web application " + standardContext.getPath() + ": Exception: " + e.getMessage(), e);
Assembler a = getAssembler(); if (a == null) { logger.warning("OpenEJB has not been initialized so war will not be scanned for nested modules " + standardContext.getPath());
final Assembler a = getAssembler(); if (a == null) { logger.warning("OpenEJB has not been initialized so war will not be scanned for nested modules " + standardContext.getPath());