public void start() { try { createAxisService(deployedURI, wsdlPort); // Apply the configuration from any other policies for (PolicyProvider pp : endpoint.getPolicyProviders()) { pp.configureBinding(this); } if (deployedURI.startsWith("http://") || deployedURI.startsWith("https://") || deployedURI.startsWith("/")) { Axis2ServiceServlet servlet = new Axis2ServiceServlet(); servlet.init(configContext); if (httpSecurityContext.isSSLEnabled()){ deployedURI = servletHost.addServletMapping(endpointURI, servlet, httpSecurityContext); } else { deployedURI = servletHost.addServletMapping(endpointURI, servlet); } } endpoint.setDeployedURI(deployedURI); } catch (AxisFault e) { throw new RuntimeException(e); } }