Package org.jboss.deployers.spi

Examples of org.jboss.deployers.spi.DeploymentException


               rootContext.destroySubcontext(path);
            }
         }
         catch (NamingException e)
         {
            throw new DeploymentException(e);
         }
      }
View Full Code Here


   public void deployInternal(DeploymentUnit unit, BootstrapInfo info) throws DeploymentException
   {
      ValueMetaData ejbServicesValue = info.getEjbServices();
      if (ejbServicesValue == null)
         throw new DeploymentException("Missing ejb services: " + unit);

      ValueMetaData deploymentValue = info.getDeployment();
      if (deploymentValue == null)
         throw new DeploymentException("Missing deployment: " + unit);

      String unitName = unit.getName();
      String envName = unitName + "_JBossWebBeanDiscovery";
      BeanMetaDataBuilder envWrapper = BeanMetaDataBuilder.createBuilder(envName, "org.jboss.test.deployers.support.WeldDEWrapper");
      envWrapper.addConstructorParameter(Deployment.class.getName(), deploymentValue);
View Full Code Here

         Context context = getBeanManagerContext().createSubcontext(unit.getSimpleName());
         context.bind("bootstrap", "Bootstrap Dummy");
      }
      catch (NamingException e)
      {
         new DeploymentException(e);
      }
   }
View Full Code Here

            {
               moduleUnit = moduleUnit.getParent();
               module = moduleUnit.getAttachment(Module.class);
            }
            if (module == null)
               throw new DeploymentException("No module in deployment unit's hierarchy: " + unit.getName());

            ArchiveInfo archive = moduleUnit.getAttachment(ArchiveInfo.class);
            if (archive == null)
               throw new IllegalStateException("Archive attachment expected for unit " + unit);
View Full Code Here

   protected void deployInternal(DeploymentUnit unit, BootstrapInfo info) throws DeploymentException
   {
      ValueMetaData ejbServicesValue = info.getEjbServices();
      if (ejbServicesValue == null)
      {
         throw new DeploymentException("Missing ejb services: " + unit);
      }

      ValueMetaData ejbInjectionServicesValue = info.getEjbInjectionServices();
      if (ejbInjectionServicesValue == null)
      {
         throw new DeploymentException("Missing ejb injection services: " + unit);
      }

      ValueMetaData deploymentValue = info.getDeployment();
      if (deploymentValue == null)
      {
         throw new DeploymentException("Missing deployment: " + unit);
      }

      String bootstrapName = DeployersUtils.getBootstrapBeanName(unit);
      BeanMetaDataBuilder bootstrap = BeanMetaDataBuilder.createBuilder(bootstrapName, "org.jboss.weld.integration.deployer.env.helpers.BootstrapBean");
View Full Code Here

   {
      Object validatorFactory = unit.getAttachment(DeployersUtils.JAVAX_VALIDATION_VALIDATOR_FACTORY);

      if (validatorFactory == null && isValidationFactoryRequired(unit))
      {
         throw new DeploymentException("Missing ValidatorFactory attachment in deployment: " + unit);
      }
      String beanName = unit.getName() + "_JBossValidationServices";
      BeanMetaDataBuilder builder = BeanMetaDataBuilder.createBuilder(beanName, "org.jboss.weld.integration.validation.JBossValidationServices");
      unit.addAttachment(beanName + "_" + BeanMetaData.class.getSimpleName(), builder.getBeanMetaData());
      builder.addConstructorParameter(DeployersUtils.JAVAX_VALIDATION_VALIDATOR_FACTORY, validatorFactory);
View Full Code Here

               {
                  module = parent.getAttachment(Module.class);
                  parent = parent.getParent();
               }
               if (module == null)
                  throw new DeploymentException("No module in deployment unit's hierarchy: " + unit.getName());
            }

            URL[] urls = new URL[cpFiles.size()];
            int i = 0;
            for (VirtualFile file : cpFiles)
View Full Code Here

         // start the deployment
         ejb3Deployment.start();
      }
      catch (Exception e)
      {
         throw new DeploymentException("Error starting Ejb3Deployment: " + ejb3Deployment.getName(), e);
      }
   }
View Full Code Here

         // TODO: temporarily disable the security deployment
         unit.addAttachment(JaccPolicyUtil.IGNORE_ME_NAME, true, Boolean.class);
      }
      catch (Throwable t)
      {
         throw new DeploymentException("Error deploying " + unit.getSimpleName() + ": " + t.getMessage(), t);
      }
   }
View Full Code Here

            unit.addAttachment(JBossClientMetaData.class, dd);
         }
      }
      catch(ClassNotFoundException e)
      {
         throw new DeploymentException(e);
      }
      catch(IOException e)
      {
         throw new DeploymentException(e);
      }
   }
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.