Examples of VirtualArtifactDeployerException


Examples of net.sourceforge.javautil.deployer.artifact.VirtualArtifactDeployerException

    if (artifact instanceof SystemFile && "war".equals( ((IVirtualFile)artifact).getExtension() )) {
      war = new ZippedDirectory( (SystemFile) artifact );
    } else if (artifact instanceof IVirtualDirectory && artifact.getName().endsWith(".war")) {
      war = (IVirtualDirectory) artifact;
    } else {
      throw new VirtualArtifactDeployerException(deployer, artifact, "Cannot deploy the artifact as a web application: " + artifact);
    }
   
    Directory vwar = new DirectoryRoot();
    vwar.link(war);
   
View Full Code Here

Examples of net.sourceforge.javautil.deployer.artifact.VirtualArtifactDeployerException

     
      application.addAuxilaryDescriptor(artifact);
      application.addAuxilaryDescriptor(depl.getDeploymentStructure());
     
      IWebServerHost host = wsd != null && wsd.getHost() != null ?  server.getHost(wsd.getHost()) : server.getDefaultHost();
      if (host == null) throw new VirtualArtifactDeployerException(this, artifact, "No host could be found for deployment");
     
      if (wsd != null) {
        for (WebApplicationExtensionDescriptor waed : wsd.getExtensions()) {
          String ecl = waed.getClassName() == null ? server.getExtension(waed.getName()) : waed.getClassName();
          if (ecl == null) continue;
View Full Code Here

Examples of net.sourceforge.javautil.deployer.artifact.VirtualArtifactDeployerException

    }
  }

  public void undeploy(WebApplicationDeployment<IVirtualDirectory> unit) {
    if (unit.getDeployer() != this)
      throw new VirtualArtifactDeployerException(this, unit.getDeployed(), "This deployer did not deploy this artifact");
   
    if (!(unit.getDeploymentStructure() instanceof IVirtualDirectory)) {
      throw (VirtualArtifactDeployerException) this.fireEvent(unit, Type.Error,
          new VirtualArtifactDeployerException(this, unit.getDeployed(), "This unit has not yet been deployed")
        ).getThrowable();
    }
   
    ClassLoader original = Thread.currentThread().getContextClassLoader();
    try {
View Full Code Here

Examples of net.sourceforge.javautil.deployer.artifact.VirtualArtifactDeployerException

   *
   * @param artifact
   * @return
   */
  protected DU createDeployment (A artifact) {
    if (this.isDeployed(artifact)) throw new VirtualArtifactDeployerException(this, artifact, "Artifact already deployed: " + artifact);
   
    IVirtualArtifactDeploymentPattern pattern = this.findPattern(artifact);
    if (pattern == null)
      throw new VirtualArtifactDeployerException(this, artifact, "Could not deploy this artifact");
   
    return (DU) pattern.createDeployment(this, artifact);
  }
View Full Code Here

Examples of net.sourceforge.javautil.deployer.artifact.VirtualArtifactDeployerException

        } catch (VirtualArtifactDeployerException e) {
          log.error("Undeplozyment failuer: " + deployment, e);
        }
      }
    } else {
      throw new VirtualArtifactDeployerException(this, unit.getDeployed(), "Unrecognized deployment: " + unit);
    }
  }
View Full Code Here

Examples of net.sourceforge.javautil.deployer.artifact.VirtualArtifactDeployerException

        log.error("Deployment failure: " + deployer, e);
      }
    }
   
    if (ctx.getRelatedDeployments().size() == 0)
      throw new VirtualArtifactDeployerException(this, ctx.getDeployment(), "Could not deploy artifact: " + ctx.getDeployment().getPath().toString("/"));
   
    VirtualArtifactDeploymentComposite composite = this.getCompositeDeployment(ctx.getDeployment(), ctx.getRelatedDeployments());
    for (IVirtualArtifactDeployment deployment : ctx.getRelatedDeployments()) {
      composite.link(deployment, true);
    }
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.