throw new DeploymentException("Failed to copy the archive assets into the deployment directory", e); } catch (ReflectiveOperationException e) { throw new DefinitionException(e.getCause()); // validation exceptions
@Override public Void call() throws Exception { delegate.deploy(descriptor); return null; } });
@SuppressWarnings("unchecked") @Override public Void call() throws Exception { delegate.undeploy(archive); return null; } });
private void failDueToRunning() throws LifecycleException { throw new LifecycleException( "The server is already running! " + "Managed containers do not support connecting to running server instances due to the " + "possible harmful effect of connecting to the wrong server. Please stop server before running or " + "change to another type of container.\n" + "To disable this check and allow Arquillian to connect to a running server, " + "set allowConnectingToRunningServer to true in the container configuration" ); }
@SuppressWarnings("unchecked") public Class<ContainerConfiguration> getConfigurationClass() { return delegate.getConfigurationClass(); }
@Override public Void call() throws Exception { delegate.stop(); return null; } });
@Override public Void call() throws Exception { delegate.start(); return null; } });
@SuppressWarnings("unchecked") @Override public Void call() throws Exception { delegate.setup(configuration); return null; } });
private void failDueToRunning() throws LifecycleException { throw new LifecycleException("The server is already running! " + "Managed containers do not support connecting to running server instances due to the " + "possible harmful effect of connecting to the wrong server. Please stop server before running or " + "change to another type of container.\n" + "To disable this check and allow Arquillian to connect to a running server, " + "set allowConnectingToRunningServer to true in the container configuration"); }
public MyDeploymentException(String message, Throwable cause) { super(message); this.deploymentException = new DeploymentException("Could not deploy", cause); }
@Override public Void call() throws Exception { delegate.undeploy(descriptor); return null; } });
@SuppressWarnings("unchecked") @Override public ProtocolMetaData call() throws Exception { return delegate.deploy(archive); } });
@SuppressWarnings("unchecked") public Class<ContainerConfiguration> getConfigurationClass() { return delegate.getConfigurationClass(); }
@Override public Void call() throws Exception { delegate.stop(); return null; } });
@Override public Void call() throws Exception { delegate.start(); return null; } });
@SuppressWarnings("unchecked") @Override public Void call() throws Exception { delegate.setup(configuration); return null; } });
@SuppressWarnings("unchecked") @Override public Void call() throws Exception { delegate.undeploy(archive); return null; } });
@Override public Void call() throws Exception { delegate.deploy(descriptor); return null; } });
@Override public Void call() throws Exception { delegate.undeploy(descriptor); return null; } });
@SuppressWarnings("unchecked") @Override public ProtocolMetaData call() throws Exception { return delegate.deploy(archive); } });