Package org.jboss.deployers.spi

Examples of org.jboss.deployers.spi.DeploymentException


    * @throws DeploymentException for any error
    */
   protected void addDeployment(Deployment deployment, boolean addToDeploy) throws DeploymentException
   {
      if (deployment == null)
         throw new DeploymentException("Null context");

      lockRead();
      try
      {
         if (shutdown.get())
            throw new DeploymentException("The main deployer is shutdown");

         String name = deployment.getName();
         log.debug("Add deployment: " + name);

         // only try to recognize non re-deployments
View Full Code Here


    * @throws DeploymentException for any error
    */
   protected boolean removeDeployment(Deployment deployment, boolean addToUndeploy) throws DeploymentException
   {
      if (deployment == null)
         throw new DeploymentException("Null deployment");

      return removeDeployment(deployment.getName(), addToUndeploy);
   }
View Full Code Here

    * @throws DeploymentException for any error
    */
   protected boolean removeDeployment(String name, boolean addToUndeploy) throws DeploymentException
   {
      if (name == null)
         throw new DeploymentException("Null name");

      lockRead();
      try
      {
         if (shutdown.get())
View Full Code Here

            {
               Deployment deployment = deployments[i];
               addDeployment(deployment, false);
               DeploymentContext context = getTopLevelDeploymentContext(deployment.getName());
               if (contexts == null)
                  throw new DeploymentException("Deployment context not found: " + deployment.getName());

               deployers.process(Collections.singletonList(context), null);
               contexts[i] = context;
            }
            catch(Throwable t)
View Full Code Here

      lockRead();
      try
      {
         DeploymentContext context = getTopLevelDeploymentContext(deploymentName);
         if (context == null)
            throw new DeploymentException("Top level deployment " + deploymentName + " not found");
         try
         {
            deployers.change(context, stage);
         }
         catch (Error e)
View Full Code Here

      DeploymentContext[] contexts = new DeploymentContext[names.length];
      for(int i = 0; i < names.length; i++)
      {
         contexts[i] = getTopLevelDeploymentContext(names[i]);
         if (contexts[i] == null)
            throw new DeploymentException("Deployment context not found: " + names[i]);
      }

      return contexts;
   }
View Full Code Here

      {
          DeploymentContext result = structuralDeployers.determineStructure(deployment);
          if (result != null)
             return result;
      }
      throw new DeploymentException("No structural deployers.");
   }
View Full Code Here

    * @throws Exception for any error
    */
   public void create() throws Exception
   {
      if (classLoading == null)
         throw new DeploymentException("Classloading has not been configured");
   }
View Full Code Here

   public void deploy(DeploymentUnit unit, DependenciesMetaData deployment) throws DeploymentException
   {
      ControllerContext context = unit.getTopLevel().getAttachment(ControllerContext.class);
      if (context == null)
         throw new DeploymentException("Missing deployment controller context: " + unit.getName());

      Object contextName = context.getName();
      unit.addAttachment(DeploymentDependencies.class, new DeploymentDependenciesImpl(contextName, deployment));
   }
View Full Code Here

         catch (Exception ignored)
         {
         }
      }
      if (parsed == null)
         throw new DeploymentException("The xml " + file.getPathName() + " is not well formed!");

      log.debug("Parsed file: "+file+" to: "+parsed);
      return expectedType.cast(parsed);
   }
View Full Code Here

TOP

Related Classes of org.jboss.deployers.spi.DeploymentException

Copyright © 2018 www.massapicom. 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.