Package org.jboss.deployment

Examples of org.jboss.deployment.DeploymentException


      {
         innerCreateQueue(context);

      }
      else
         throw new DeploymentException("Unknown destination-type " + destinationType);

      log.debug("Initialized with config " + toString());

      context.close();
   }
View Full Code Here


      {
         log.warn("Could not find the queue destination-jndi-name=" + getDestination());
      }
      catch (ClassCastException e)
      {
         throw new DeploymentException("Expected a Queue destination-jndi-name=" + getDestination());
      }

      if (queue == null)
         queue = (Queue) createDestination(Queue.class,
                 context,
View Full Code Here

      {
         log.warn("Could not find the topic destination-jndi-name=" + getDestination());
      }
      catch (ClassCastException e)
      {
         throw new DeploymentException("Expected a Topic destination-jndi-name=" + getDestination());
      }

      if (topic == null)
         topic = (Topic) createDestination(Topic.class,
                 context,
View Full Code Here

  public void create(DeploymentInfo di) throws DeploymentException {
    try {
      String urlStr = di.url.getFile();

      if (jbiContainerMBean == null) {
        throw new DeploymentException(
            "The ServiceMix JBI container is not defined in Deployer");
      }
      log
          .info("ServiceMix deployer passing deployment to JBI container ["
              + di.url.toExternalForm() + "]");
      if (urlStr.endsWith(".jar") || urlStr.endsWith(".zip")) {
        getServer().invoke(jbiContainerMBean, "installArchive",
            new Object[] { di.url.toExternalForm() },
            new String[] { "java.lang.String" });
      } else {
        getServer().invoke(jbiContainerMBean, "installServiceMixXml",
            new Object[] { di.url.toExternalForm() },
            new String[] { "java.lang.String" });
      }

    } catch (Exception e) {
      throw new DeploymentException(
          "ServiceMix deployer unable to deploy: " + di, e);
    }
  }
View Full Code Here

  public void destroy(DeploymentInfo di) {
    try {
      String urlStr = di.url.getFile();

      if (jbiContainerMBean == null) {
        throw new DeploymentException(
            "The ServiceMix JBI container is not defined in Deployer");
      }
      log
          .info("ServiceMix deployer passing deployment to JBI container ["
              + di.url.toExternalForm() + "]");
View Full Code Here

      initWatcher(di);
      log.info("Init LoaderRepository");
      initLoaderRepository(di);
    } catch (Exception e) {
      log.error(e.getMessage());
      throw new DeploymentException("Error in accessing application metadata: ", e);
    }

    // invoke super-class initialization
    super.init(di);
  }
View Full Code Here

   // ServiceMBeanSupport overrides ---------------------------------
  
   protected void startService() throws Exception
   {
      if (jndiName == null)
         throw new DeploymentException("The jndiName is null for LinkRefPair " + getServiceName());
      if (remoteJndiName == null)
         throw new DeploymentException("The remoteJndiName is null for LinkRefPair " + getServiceName());
      if (localJndiName == null)
         throw new DeploymentException("The localJndiName is null for LinkRefPair " + getServiceName());

      LinkRefPair pair = new LinkRefPair(remoteJndiName, localJndiName);
      InitialContext ctx = new InitialContext();
      try
      {
View Full Code Here

            log.debug("Failed to find deployer/deployment for war: " + warURL);
         }
      }
      catch (Exception e)
      {
         throw new DeploymentException("Error during stop", e);
      }
   }
View Full Code Here

      }
      Element homeInterceptorConf = (Element) interceptors.get(HOME_INTERCEPTOR);
      loadInterceptorClasses(homeInterceptorClasses, homeInterceptorConf);
      if(homeInterceptorClasses.size() == 0)
      {
         throw new DeploymentException("There are no home interface interceptors configured");
      }

      Element beanInterceptorConf = (Element) interceptors.get(BEAN_INTERCEPTOR);
      loadInterceptorClasses(beanInterceptorClasses, beanInterceptorConf);
      if(beanInterceptorClasses.size() == 0)
      {
         throw new DeploymentException("There are no bean interface interceptors configured");
      }

      Element listEntityInterceptorConf = (Element) interceptors.get(LIST_ENTITY_INTERCEPTOR);
      loadInterceptorClasses(listEntityInterceptorClasses, listEntityInterceptorConf);
   }
View Full Code Here

      else
      {
         final Class cmdClass = entityCommand.getCommandClass();
         if(cmdClass == null)
         {
            throw new DeploymentException(
               "entity-command class name is not specified for entity " + entityBridge.getEntityName()
            );
         }

         try
         {
            createCmd = (CreateCommand)cmdClass.newInstance();
         }
         catch(ClassCastException cce)
         {
            throw new DeploymentException("Entity command " + cmdClass + " does not implement " + CreateCommand.class);
         }
      }

      createCmd.init(this);
   }
View Full Code Here

TOP

Related Classes of org.jboss.deployment.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.