private static boolean undeploy(final StandardContext standardContext, final Container host) { final Container child = host.findChild(standardContext.getName()); // skip undeployment if redeploying (StandardContext.redeploy()) if (child instanceof org.apache.catalina.Context && org.apache.catalina.Context.class.cast(child).getPaused()) { return true; } // skip undeployment if restarting final TomEEWebappClassLoader tomEEWebappClassLoader = lazyClassLoader( org.apache.catalina.Context.class.isInstance(child) ? org.apache.catalina.Context.class.cast(child) : null); if (tomEEWebappClassLoader != null && tomEEWebappClassLoader.isRestarting()) { return true; } if (child != null) { host.removeChild(standardContext); return true; } return false; }
/** * Unregister context. */ private void unregisterContext(Context context) { // Don't un-map a context that is paused if (context.getPaused()){ return; } String contextPath = context.getPath(); if ("/".equals(contextPath)) { contextPath = ""; } String hostName = context.getParent().getName(); if(log.isDebugEnabled()) log.debug(sm.getString("mapperListener.unregisterContext", contextPath, connector)); mapper.removeContextVersion(hostName, contextPath, context.getWebappVersion()); }
/** * Unregister context. */ private void unregisterContext(Context context) { // Don't un-map a context that is paused if (context.getPaused()){ return; } String contextPath = context.getPath(); if ("/".equals(contextPath)) { contextPath = ""; } String hostName = context.getParent().getName(); if(log.isDebugEnabled()) log.debug(sm.getString("mapperListener.unregisterContext", contextPath, connector)); mapper.removeContextVersion(hostName, contextPath, context.getWebappVersion()); }
/** * Unregister context. */ private void unregisterContext(Context context) { // Don't un-map a context that is paused if (context.getPaused()){ return; } String contextPath = context.getPath(); if ("/".equals(contextPath)) { contextPath = ""; } String hostName = context.getParent().getName(); if(log.isDebugEnabled()) log.debug(sm.getString("mapperListener.unregisterContext", contextPath, connector)); mapper.removeContextVersion(hostName, contextPath, context.getWebappVersion()); }
/** * Unregister context. */ private void unregisterContext(Context context) { // Don't un-map a context that is paused if (context.getPaused()){ return; } String contextPath = context.getPath(); if ("/".equals(contextPath)) { contextPath = ""; } String hostName = context.getParent().getName(); if(log.isDebugEnabled()) { log.debug(sm.getString("mapperListener.unregisterContext", contextPath, connector)); } mapper.removeContextVersion(hostName, contextPath, context.getWebappVersion()); }
/** * Unregister context. */ private void unregisterContext(Context context) { // Don't un-map a context that is paused if (context.getPaused()){ return; } String contextPath = context.getPath(); if ("/".equals(contextPath)) { contextPath = ""; } String hostName = context.getParent().getName(); if(log.isDebugEnabled()) { log.debug(sm.getString("mapperListener.unregisterContext", contextPath, service)); } mapper.removeContextVersion(context, hostName, contextPath, context.getWebappVersion()); }
/** * Unregister context. */ private void unregisterContext(Context context) { // Don't un-map a context that is paused if (context.getPaused()){ return; } String contextPath = context.getPath(); if ("/".equals(contextPath)) { contextPath = ""; } String hostName = context.getParent().getName(); if(log.isDebugEnabled()) { log.debug(sm.getString("mapperListener.unregisterContext", contextPath, connector)); } mapper.removeContextVersion(hostName, contextPath, context.getWebappVersion()); }
/** * Unregister context. */ private void unregisterContext(Context context) { String contextPath = context.getPath(); if ("/".equals(contextPath)) { contextPath = ""; } String hostName = context.getParent().getName(); if (context.getPaused()) { if (log.isDebugEnabled()) { log.debug(sm.getString("mapperListener.pauseContext", contextPath, service)); } mapper.pauseContextVersion(context, hostName, contextPath, context.getWebappVersion()); } else { if (log.isDebugEnabled()) { log.debug(sm.getString("mapperListener.unregisterContext", contextPath, service)); } mapper.removeContextVersion(context, hostName, contextPath, context.getWebappVersion()); } }
/** * Unregister context. */ private void unregisterContext(Context context) { String contextPath = context.getPath(); if ("/".equals(contextPath)) { contextPath = ""; } String hostName = context.getParent().getName(); if (context.getPaused()) { if (log.isDebugEnabled()) { log.debug(sm.getString("mapperListener.pauseContext", contextPath, service)); } mapper.pauseContextVersion(context, hostName, contextPath, context.getWebappVersion()); } else { if (log.isDebugEnabled()) { log.debug(sm.getString("mapperListener.unregisterContext", contextPath, service)); } mapper.removeContextVersion(context, hostName, contextPath, context.getWebappVersion()); } }
if (!c.getPaused()) { unregisterContext(c);
if (!c.getPaused()) { unregisterContext(c);
if (!mapRequired && request.getContext().getPaused()) {
if (!mapRequired && request.getContext().getPaused()) {
if (!mapRequired && request.getContext().getPaused()) {
if (!mapRequired && request.getContext().getPaused()) {