Examples of WarDeployment


Examples of org.springframework.osgi.web.deployer.WarDeployment

                  + " is already deployed; ignoring...");
            }
            return;
          }

          WarDeployment deployment = warDeployer.deploy(bundle, contextPath);
          // deploy the bundle
          bundlesToDeployments.put(bundle, deployment);
        } catch (OsgiWarDeploymentException ex) {
          // log exception
          log.error("War deployment of bundle " + bundleName + " failed", ex);
View Full Code Here

Examples of org.springframework.osgi.web.deployer.WarDeployment

      public UndeployTask(Bundle bundle, Counter counter) {
        super(bundle, counter);
      }

      public void doRun() {
        WarDeployment deployment = (WarDeployment) bundlesToDeployments.remove(bundle);
        // double check that we do have a deployment
        if (deployment != null)
          try {
            deployment.undeploy();
          } catch (OsgiWarDeploymentException ex) {
            // log exception
            log.error("War undeployment of bundle " + bundleName + " failed", ex);
          }
      }
View Full Code Here

Examples of org.springframework.osgi.web.deployer.WarDeployment

    }
  }


  protected void setUp() throws Exception {
    deployment = new WarDeployment() {

      public WarDeploymentContext getDeploymentContext() {
        return new DefaultWarDeploymentContext(new MockBundle(), "/context", new MockServletContext());
      }
View Full Code Here

Examples of org.springframework.osgi.web.deployer.WarDeployment

  public WarDeployment deploy(Bundle bundle, String contextPath) throws OsgiWarDeploymentException {
    String commonMessage = "bundle [" + OsgiStringUtils.nullSafeNameAndSymName(bundle) + "] at [" + contextPath
        + "] on server " + getServerInfo();
    if (log.isDebugEnabled())
      log.debug("Creating deployment for " + commonMessage);
    WarDeployment deployment;

    try {
      deployment = createDeployment(bundle, contextPath);
    }
    catch (Exception ex) {
View Full Code Here

Examples of org.springframework.osgi.web.deployer.WarDeployment

  public void testCreateDeployment() throws Exception {
    deployer.afterPropertiesSet();
    BundleContext bundleCtx = new MockBundleContext();
    String contextPath = "/path";
    WarDeployment deployment = deployer.createDeployment(bundleCtx.getBundle(), contextPath);
    assertNotNull(deployment);
    JettyWarDeployment jettyDeployment = (JettyWarDeployment) deployment;
    assertTrue(jettyDeployment.isActive());
    WebAppContext ctx = jettyDeployment.getWebAppContext();
    assertSame(server, ctx.getServer());
View Full Code Here

Examples of org.springframework.osgi.web.deployer.WarDeployment

    BundleContext bundleCtx = new MockBundleContext();
    String contextPath = "/path";
    deployer.setServer(tempServer);
    deployer.afterPropertiesSet();
    WarDeployment deployment = deployer.createDeployment(bundleCtx.getBundle(), contextPath);
    deployment.undeploy();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.