Examples of removeServletMapping()


Examples of org.apache.catalina.Context.removeServletMapping()

            ServletWrapper servletWrapper = (ServletWrapper)md.wrapper;
           
            port.getConnector().getMapper().removeWrapper("localhost", "", mapping);

            try {
               context.removeServletMapping(mapping);
            } catch (NegativeArraySizeException e) {
                // JIRA TUSCANY-1599
                //FIXME Looks like a bug in Tomcat when removing the last
                // servlet in the list, catch the exception for now as it doesn't
                // seem harmful, will find a better solution for the next release
View Full Code Here

Examples of org.apache.catalina.Context.removeServletMapping()

            ServletWrapper servletWrapper = (ServletWrapper)md.wrapper;

            port.getConnector().getMapper().removeWrapper("localhost", "", mapping);

            try {
                context.removeServletMapping(mapping);
            } catch (NegativeArraySizeException e) {
                // JIRA TUSCANY-1599
                //FIXME Looks like a bug in Tomcat when removing the last
                // servlet in the list, catch the exception for now as it doesn't
                // seem harmful, will find a better solution for the next release
View Full Code Here

Examples of org.apache.catalina.Context.removeServletMapping()

            ServletWrapper servletWrapper = (ServletWrapper)md.wrapper;

            port.getConnector().getMapper().removeWrapper("localhost", "", mapping);

            try {
                context.removeServletMapping(mapping);
            } catch (NegativeArraySizeException e) {
                // JIRA TUSCANY-1599
                //FIXME Looks like a bug in Tomcat when removing the last
                // servlet in the list, catch the exception for now as it doesn't
                // seem harmful, will find a better solution for the next release
View Full Code Here

Examples of org.apache.catalina.Context.removeServletMapping()

            ServletWrapper servletWrapper = (ServletWrapper)md.wrapper;

            port.getConnector().getMapper().removeWrapper("localhost", "", mapping);

            try {
                context.removeServletMapping(mapping);
            } catch (NegativeArraySizeException e) {
                // JIRA TUSCANY-1599
                // FIXME Looks like a bug in Tomcat when removing the last
                // Servlet in the list, catch the exception for now as it doesn't
                // seem harmful, will find a better solution for the next release
View Full Code Here

Examples of org.apache.catalina.Context.removeServletMapping()

            ServletWrapper servletWrapper = (ServletWrapper)md.wrapper;

            port.getConnector().getMapper().removeWrapper("localhost", "", mapping);

            try {
                context.removeServletMapping(mapping);
            } catch (NegativeArraySizeException e) {
                // JIRA TUSCANY-1599
                // FIXME Looks like a bug in Tomcat when removing the last
                // Servlet in the list, catch the exception for now as it doesn't
                // seem harmful, will find a better solution for the next release
View Full Code Here

Examples of org.apache.catalina.Context.removeServletMapping()

        } catch (Exception e) {
            return null;
        }
        if (md.wrapper instanceof ServletWrapper) {
            ServletWrapper servletWrapper = (ServletWrapper)md.wrapper;
            context.removeServletMapping(mapping);
            context.removeChild(servletWrapper);
            servletWrapper.destroyServlet();
            return servletWrapper.getServlet();
        } else {
            return null;
View Full Code Here

Examples of org.apache.catalina.Context.removeServletMapping()

            ServletWrapper servletWrapper = (ServletWrapper)md.wrapper;

            port.getConnector().getMapper().removeWrapper("localhost", "", mapping);

            try {
                context.removeServletMapping(mapping);
            } catch (NegativeArraySizeException e) {
                // JIRA TUSCANY-1599
                // FIXME Looks like a bug in Tomcat when removing the last
                // Servlet in the list, catch the exception for now as it doesn't
                // seem harmful, will find a better solution for the next release
View Full Code Here

Examples of org.apache.catalina.Context.removeServletMapping()

            return null;
        }
        if (md.wrapper instanceof ServletWrapper) {
            ServletWrapper servletWrapper = (ServletWrapper)md.wrapper;
            try {
               context.removeServletMapping(mapping);
            } catch (NegativeArraySizeException e) {
                // JIRA TUSCANY-1599
                //FIXME Looks like a bug in Tomcat when removing the last
                // servlet in the list, catch the exception for now as it doesn't
                // seem harmful, will find a better solution for the next release
View Full Code Here

Examples of org.apache.catalina.Context.removeServletMapping()

    if (removeDefaultServlet) {
      ctx.addLifecycleListener(new LifecycleListener() {
        @Override
        public void lifecycleEvent(LifecycleEvent event) {
          if (Lifecycle.BEFORE_START_EVENT.equals(event.getType())) {
            ctx.removeServletMapping("/");
          }
        }
      });
    }
View Full Code Here

Examples of org.apache.catalina.Context.removeServletMapping()

                String[] servletMappings =
                    currentContext.findServletMappings();
                for (int j = 0; j < servletMappings.length; j++) {
                    String currentMapping = servletMappings[j];
                    if (!currentMapping.equals("/*")) {
                        currentContext.removeServletMapping(currentMapping);
                    }
                }
            } catch (ClassCastException e) {
                // Silent catch; should never happen
            }
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.