public void create(Deployment dep, URL webAppURL) { if (webAppURL == null) throw new IllegalArgumentException("Web meta data URL cannot be null"); log.debug("publishServiceEndpoint: " + webAppURL); try { webXMLRewriter.rewriteWebXml(dep); dep.setProperty(HttpSpec.PROPERTY_WEBAPP_URL, webAppURL); org.jboss.deployers.client.spi.Deployment deployment = createDeploymentContext(webAppURL); // Mark the deployment as generated web app so the JSE deployer hook can ignore it MutableAttachments attach = (MutableAttachments)deployment.getPredeterminedManagedObjects(); attach.addAttachment(HttpSpec.PROPERTY_GENERATED_WEBAPP, Boolean.TRUE); mainDeployer.deploy(deployment); deploymentMap.put(webAppURL.toExternalForm(), deployment); } catch (Exception ex) { WSFDeploymentException.rethrow(ex); } }