Examples of DeploymentManagerCreationException


Examples of javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException

        return URI_SCHEME.equals(fullUri.getScheme());
    }

    public DeploymentManager getDisconnectedDeploymentManager(final String uri) throws DeploymentManagerCreationException {
        if (!handlesURI(uri)) {
            throw new DeploymentManagerCreationException("Invalid URI: " + uri);
        }

        final VmDeploymentManager deploymentManager = new VmDeploymentManager();
        deploymentManager.release();
        return deploymentManager;
View Full Code Here

Examples of javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException

            return remoteDeploymentManager;
        }
        try {
            return (RemoteDeploymentManager) kernel.getGBean(RemoteDeploymentManager.class);
        } catch (Exception e) {
            throw (DeploymentManagerCreationException) new DeploymentManagerCreationException("See nested").initCause(e);
        }
    }
View Full Code Here

Examples of javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException

            if (params.getProtocol().equals("jmx") || params.getProtocol().equals("jmxs")) {
                return newRemoteDeploymentManager(username, password, params);
            } else if(params.getProtocol().equals("inVM")) {
                return new LocalDeploymentManager(KernelRegistry.getKernel(params.getHost()));
            } else {
                throw new DeploymentManagerCreationException("Invalid URI: " + uri);
            }
        } catch (RuntimeException e) {
            // some DeploymentManagerFactories suppress unchecked exceptions - log and rethrow
            log.error(e.getMessage(), e);
            throw e;
View Full Code Here

Examples of javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException

            if(!manager.isSameMachine()) {
                manager.setAuthentication(username, password);
            }
            return manager;
        } catch (IOException e) {
            DeploymentManagerCreationException deploymentManagerCreationException =
                    (DeploymentManagerCreationException) new DeploymentManagerCreationException(e.getMessage()).initCause(e);
            log.debug("throwing ", deploymentManagerCreationException);
            throw deploymentManagerCreationException;
        } catch (SecurityException e) {
            AuthenticationFailedException authenticationFailedException =
                    (AuthenticationFailedException) new AuthenticationFailedException("Invalid login.").initCause(e);
View Full Code Here

Examples of javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException

        kernel = newKernel();
       
        try {
            delegate = (DeploymentFactory) kernel.getGBean(DeploymentFactory.class);
        } catch (Exception e) {
            throw (DeploymentManagerCreationException) new DeploymentManagerCreationException("See nested").initCause(e);
        }
    }
View Full Code Here

Examples of javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException

        try {
            bootstrapper.bootKernel();
            bootstrapper.loadBootConfiguration(classLoader);
            bootstrapper.loadPersistentConfigurations();
        } catch (Exception e) {
            throw (DeploymentManagerCreationException) new DeploymentManagerCreationException("See nested").initCause(e);
        }
        return bootstrapper.getKernel();
    }
View Full Code Here

Examples of javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException

            if (params.getProtocol().equals("jmx") || params.getProtocol().equals("jmxs")) {
                return newRemoteDeploymentManager(username, password, params);
            } else if(params.getProtocol().equals("inVM")) {
                return new LocalDeploymentManager(KernelRegistry.getKernel(params.getHost()));
            } else {
                throw new DeploymentManagerCreationException("Invalid URI: " + uri);
            }
        } catch (RuntimeException e) {
            // some DeploymentManagerFactories suppress unchecked exceptions - log and rethrow
            log.error(e.getMessage(), e);
            throw e;
        } catch (Error e) {
            // some DeploymentManagerFactories suppress unchecked exceptions - log and rethrow
            log.error(e.getMessage(), e);
            throw e;
        } catch (IOException e) {
            log.error(e.getMessage(), e);
            throw new DeploymentManagerCreationException(e.getMessage());
        }
    }
View Full Code Here

Examples of javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException

            if(!manager.isSameMachine()) {
                manager.setAuthentication(username, password);
            }
            return manager;
        } catch (IOException e) {
            DeploymentManagerCreationException deploymentManagerCreationException =
                    (DeploymentManagerCreationException) new DeploymentManagerCreationException(e.getMessage()).initCause(e);
            log.debug("throwing ", deploymentManagerCreationException);
            throw deploymentManagerCreationException;
        } catch (SecurityException e) {
            AuthenticationFailedException authenticationFailedException =
                    (AuthenticationFailedException) new AuthenticationFailedException("Invalid login.").initCause(e);
View Full Code Here

Examples of javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException

            return remoteDeploymentManager;
        }
        try {
            return kernel.getGBean(RemoteDeploymentManager.class);
        } catch (Exception e) {
            throw (DeploymentManagerCreationException) new DeploymentManagerCreationException("See nested").initCause(e);
        }
    }
View Full Code Here

Examples of javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException

        kernel = newKernel();
       
        try {
            delegate = (DeploymentFactory) kernel.getGBean(DeploymentFactory.class);
        } catch (Exception e) {
            throw (DeploymentManagerCreationException) new DeploymentManagerCreationException("See nested").initCause(e);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.