Package org.apache.catalina.core

Examples of org.apache.catalina.core.StandardContext.stop()


        // 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();
View Full Code Here


        if (context != null){
            if (context instanceof StandardContext){
                StandardContext stdctx = (StandardContext)context;
                try{
                    stdctx.stop();
                    stdctx.destroy();
                } catch (Exception e){
                    throw new RuntimeException(e);
                }
View Full Code Here

        // 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();
View Full Code Here

      if (standardContext != null)
      {
         standardHost.removeChild(standardContext);
         try
         {
            standardContext.stop();
            standardContext.destroy();
         }
         catch (Exception e)
         {
            log.log(Level.WARNING, "Error on undeployment of "+standardContext.getName(), e);
View Full Code Here

        // 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();
View Full Code Here

    }

    void unregisterInternal(Registration reg) {
        StandardContext context = reg.getContext();
        try {
            context.stop();
        } catch (LifecycleException e) {
            WEB_LOGGER.stopContextFailed(e);
        }
        try {
            context.destroy();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.