JMXServiceURL temp = new JMXServiceURL(address.getProtocol(), address.getHost(), address.getPort(), undeployPath);
String undeployEndpoint = getEndpoint(temp, environment);
try
{
AdminClient deployer = new AdminClient();
Options options = new Options(null);
options.setDefaultURL(undeployEndpoint);
InputStream wsdd = getClass().getResourceAsStream(SERVER_UNDEPLOY_WSDD);
if (wsdd == null) throw new IOException("Could not find AXIS deployment descriptor " + SERVER_UNDEPLOY_WSDD);
deployer.process(options, wsdd);
}
catch (Exception x)
{
Logger logger = getLogger();
if (logger.isEnabledFor(Logger.INFO)) logger.info("Exception while undeploying AXIS service", x);