dep.removeAttachment(ServiceTarget.class);
}
SecurityActions.setContextClassLoader(origClassLoader);
}
Deployment deployment = unit.getAttachment(WSAttachmentKeys.DEPLOYMENT_KEY);
deployment.addAttachment(StandardContext.class, startWebApp(host, unit)); //TODO simplify and use findChild later in destroy()/stopWebApp()
return deployment.getService().getEndpoints();
}
private static StandardContext startWebApp(Host host, WSEndpointDeploymentUnit unit) throws Exception {
StandardContext context = new StandardContext();