public void create(Deployment dep) { URL warURL = (URL)dep.getProperty("org.jboss.ws.webapp.url"); if (warURL == null) throw new IllegalStateException("Cannot obtain webapp URL"); 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) { WSFDeploymentException.rethrow(ex); } }
this.server = di.getServer(); try { if (di.url.getPath().endsWith("/")) { di.setRepositoryInfo(config);
public void create(Deployment dep, WSFRuntime runtime) { URL warURL = (URL)dep.getProperty("org.jboss.ws.webapp.url"); if (warURL == null) throw new IllegalStateException("Cannot obtain webapp URL"); 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) { WSFDeploymentException.rethrow(ex); } }
public void create(Deployment dep, WSFRuntime rruntime) { URL warURL = (URL)dep.getProperty("org.jboss.ws.webapp.url"); if (warURL == null) throw new IllegalStateException("Cannot obtain webapp URL"); 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(); getMainDeployer().deploy(auxdi); } catch (Exception ex) { WSFDeploymentException.rethrow(ex); } }