Examples of DeployerException


Examples of org.ow2.util.ee.deploy.api.deployer.DeployerException

            // invoke setters
            // for the URL of the war file
            try {
                webAppContext.setWar(war.getArchive().getURL().getPath());
            } catch (ArchiveException e) {
                throw new DeployerException("Cannot get URL from the archive '" + war.getArchive() + "'.", e);
            }
            // Defines the name of the context
            webAppContext.setContextPath("/" + war.getContextRoot());
            // Java delegation model = true
            webAppContext.setParentLoaderPriority(true);

            // add the built context on the existing list
            this.contextHandlerCollection.addHandler(webAppContext);

            // set the thread context classloader to the parent classloader
            ClassLoader oldCl = Thread.currentThread().getContextClassLoader();
            Thread.currentThread().setContextClassLoader(parentClassLoader);
            // start context
            try {
                webAppContext.start();
            } catch (Exception e) {
                throw new DeployerException("Cannot start the context '" + war.getContextRoot() + "'", e);
            } finally {
                // reset classloader
                Thread.currentThread().setContextClassLoader(oldCl);
            }
View Full Code Here

Examples of org.ow2.util.ee.deploy.api.deployer.DeployerException

            }
        }

        // Context not found
        if (webAppContext == null) {
            throw new DeployerException("Unable to find a context with the name '" + contextRoot
                    + "' for the War deployable '" + warDeployable + "'.");
        }

        // Stop the context
        try {
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.