/** * Handle all webservice deployment exceptions. * You can either simply log the problem and keep the EJB/WAR module * alive or undeploy properly. */ protected void handleStartupException(DeploymentInfo di, Throwable th) { log.error("Cannot startup webservice for: " + di.shortName, th); mainDeployer.undeploy(di); }
pdi.deployer = this; infoContexts.put(pdi.url, new PortalDeploymentInfoContext(pdi)); mainDeployer.deploy(pdi);
if (mainDeployer.isDeployed(setupURL)) mainDeployer.undeploy(setupURL);
mainDeployer.removeDeployer(thisProxy);
mainDeployer.addDeployer(thisProxy);
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); } }
/** * Handle all webservice deployment exceptions. * You can either simply log the problem and keep the EJB/WAR module * alive or undeploy properly. */ protected void handleStartupException(DeploymentInfo di, Throwable th) { log.error("Cannot startup webservice for: " + di.shortName, th); mainDeployer.undeploy(di); }
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); } }
/** * Handle all webservice deployment exceptions. * You can either simply log the problem and keep the EJB/WAR module * alive or undeploy properly. */ protected void handleStartupException(DeploymentInfo di, Throwable th) { log.error("Cannot startup webservice for: " + di.shortName, th); mainDeployer.undeploy(di); }
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); } }
public void destroy(Deployment dep, WSFRuntime rruntime) { URL warURL = (URL)dep.getProperty("org.jboss.ws.webapp.url"); if (warURL == null) { log.error("Cannot obtain warURL"); return; } log.debug("destroyServiceEndpoint: " + warURL); try { getMainDeployer().undeploy(warURL); } catch (Exception ex) { WSFDeploymentException.rethrow(ex); } }
public void deploy(PortalWebApp pwa) throws DeploymentException { // Instrument the web app instrument(pwa); // Create the deployment object RepositoryClassLoader rcl = Deployment.findRepositoryClassLoader(pwa.getClassLoader()); URL url = Deployment.findWEBINFURL(pwa.getURL()); // Create our deployment info object and pass it to main deployer PortalDeploymentInfo pdi = new PortalDeploymentInfo(url, null, pwa, server); pdi.ucl = rcl; pdi.deployer = this; // Put it in the map infoContexts.put(pdi.url, new PortalDeploymentInfoContext(pdi)); // And let JBoss deploy it mainDeployer.deploy(pdi); // Notify portal getPageHeaderResourceService().deploy(pwa); }
public void destroy(Deployment dep) { URL warURL = (URL)dep.getProperty("org.jboss.ws.webapp.url"); if (warURL == null) { log.error("Cannot obtain warURL"); return; } log.debug("destroyServiceEndpoint: " + warURL); try { getMainDeployer().undeploy(warURL); } catch (Exception ex) { WSFDeploymentException.rethrow(ex); } }
public void destroy(Deployment dep) { URL warURL = (URL)dep.getProperty("org.jboss.ws.webapp.url"); if (warURL == null) { log.error("Cannot obtain warURL"); return; } log.debug("destroyServiceEndpoint: " + warURL); try { getMainDeployer().undeploy(warURL); } catch (Exception ex) { WSFDeploymentException.rethrow(ex); } }
public void undeploy(PortalWebApp pwa) throws DeploymentException { URL url = Deployment.findWEBINFURL(pwa.getURL()); // try { getPageHeaderResourceService().undeploy(pwa); // Undeploy mainDeployer.undeploy(url); } catch (Exception e) { log.error("Error when undeploying portal web app", e); } finally { // Remove it in the map infoContexts.remove(url); } }