log.debug("publishServiceEndpoint: " + warURL);
try
{
webXMLRewriter.rewriteWebXml(dep);
DeploymentInfo auxdi = new DeploymentInfo(warURL, null, MBeanServerLocator.locateJBoss());
// Preserve the repository config
DeploymentInfo di = dep.getAttachment(DeploymentInfo.class);
if (di != null)
auxdi.repositoryConfig = di.getTopRepositoryConfig();
auxdi.context.put("org.jboss.ws.ejbwebapp", "true");
getMainDeployer().deploy(auxdi);
}
catch (Exception ex)