Package org.jboss.arquillian.container.spi.client.container

Examples of org.jboss.arquillian.container.spi.client.container.DeploymentException


            installBundle(location, inputStream);

        } catch (RuntimeException rte) {
            throw rte;
        } catch (Exception ex) {
            throw new DeploymentException("Cannot deploy: " + archive, ex);
        }

        return new ProtocolMetaData().addContext(new JMXContext(mbeanServer));
    }
View Full Code Here


         {
            future.get();
         }
         if (addon.getStatus().isFailed())
         {
            DeploymentException e = new DeploymentException("AddonDependency " + addonToDeploy
                     + " failed to deploy.");
            deployment.deployedWithError(e);
            throw new DeploymentException("AddonDependency " + addonToDeploy + " failed to deploy.", e);
         }
      }
      catch (Exception e)
      {
         deployment.deployedWithError(e);
         throw new DeploymentException("AddonDependency " + addonToDeploy + " failed to deploy.", e);
      }
   }
View Full Code Here

            ((MutableAddonRepository) addonToStop.getRepository()).disable(addonToUndeploy);
         Addons.waitUntilStopped(addonToStop);
      }
      catch (Exception e)
      {
         throw new DeploymentException("Failed to undeploy " + addonToUndeploy, e);
      }
      finally
      {
         repository.undeploy(addonToUndeploy);
      }
View Full Code Here

            Throwable rootCause = e.getCause();
            while( null != rootCause ){
                rcMessage = rootCause.getMessage();
                rootCause = rootCause.getCause();
            }
            throw new DeploymentException("Could not deploy to container: " + rcMessage, e);
        }
    }
View Full Code Here

        List<String> responses = new ArrayList<String>();
        try {
            runCmd(uploadDeploymentCmd, "upload", "./", null, configuration.getUploadTimeout());
            runCmd(deployCmd, "deploy", "./", responses, configuration.getDeployTimeout());
        } catch (InterruptedException e) {
            throw new DeploymentException("Cannot deploy to AppScale.", e);
        }

        deploymentInfo = parseUrlFromResponse(responses);

        if (deploymentInfo.isValid() == false) {
            throw new DeploymentException("Could not deploy, invalid reponse: " + deploymentInfo);
        }

        return getProtocolMetaData(deploymentInfo.host, deploymentInfo.port, archive);
    }
View Full Code Here

        try {
            runCmd(undeployCmd, "undeploy", "./", null, configuration.getUndeployTimeout());
            runCmd(removeDeploymentArchive, "remove", "./", null, configuration.getRemoveTimeout());
        } catch (InterruptedException e) {
            throw new DeploymentException("Cannot undeploy from AppScale.", e);
        }
    }
View Full Code Here

        {
            lifecycle.startApplication(null);
        }
        catch (WebBeansDeploymentException e)
        {
            throw new DeploymentException(e.getMessage(), e);
        }

        return new ProtocolMetaData();
    }
View Full Code Here

            BundleHandle handle = installBundle(archive);
            deployedBundles.put(archive.getName(), handle);
        } catch (RuntimeException rte) {
            throw rte;
        } catch (Exception ex) {
            throw new DeploymentException("Cannot deploy: " + archive.getName(), ex);
        }
        MBeanServerConnection mbeanServer = mbeanServerInstance.get();
        return new ProtocolMetaData().addContext(new JMXContext(mbeanServer));
    }
View Full Code Here

            List<String> args = new ArrayList<String>();
            args.add("com.google.appengine.tools.development.DevAppServerMain"); // dev app server

            String sdkDir = (String) addArg(args, "sdk_root", configuration.getSdkDir(), false);
            if (new File(sdkDir).isDirectory() == false)
                throw new DeploymentException("SDK root is not a directory: " + sdkDir);

            String classpath = System.getProperty("java.class.path");
            String toolsJar = sdkDir + "/lib/appengine-tools-api.jar";
            if (classpath.contains(toolsJar) == false)
                System.setProperty("java.class.path", classpath + File.pathSeparator + toolsJar);

            addArg(args, "server", configuration.getServer(), true);

            addArg(args, "address", configuration.getAddress(), false);
            addArg(args, "port", configuration.getPort(), false);
            addArg(args, "startOnFirstThread", configuration.isDisableUpdateCheck(), false);
            addArg(args, "disable_update_check", configuration.isStartOnFirstThread());
            boolean isJavaAgentSet = (configuration.getJavaAgent() != null);
            if (isJavaAgentSet) {
                addArg(args, "jvm_flag", "-noverify", false);
                addArg(args, "jvm_flag", "-javaagent:" + configuration.getJavaAgent(), false);
            }
            // TODO -- JVM FLAGS
            args.add(getAppLocation().getCanonicalPath());

            invokeAppEngine(sdkDir, "com.google.appengine.tools.KickStart", args.toArray(new String[args.size()]));

            String serverURL = configuration.getServerTestURL();
            if (serverURL == null)
                serverURL = "http://localhost:" + configuration.getPort() + "/_ah/admin";

            delayArchiveDeploy(serverURL, configuration.getStartupTimeout(), 1000L);

            return getProtocolMetaData(configuration.getAddress(), configuration.getPort(), archive);
        } catch (Exception e) {
            throw new DeploymentException("Cannot deploy to local GAE.", e);
        }
    }
View Full Code Here

            .addContext(httpContext);

      }
      catch (Exception e)
      {
         throw new DeploymentException("Could not deploy " + archive.getName(), e);
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.container.spi.client.container.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.