Package org.apache.geronimo.deployment

Examples of org.apache.geronimo.deployment.DeploymentContext.addFile()


        context = new DeploymentContext(outfile, configID, ConfigurationModuleType.SERVICE, parentID, null, null, kernel);

        // Copy over all files.
        for (Enumeration e = module.entries(); e.hasMoreElements();) {
            ZipEntry entry = (ZipEntry) e.nextElement();
            context.addFile(URI.create(entry.getName()), module, entry);
        }

        // Create the JBI deployment managed object
        try {
            Properties props = new Properties();
View Full Code Here


            ZipEntry src;
            while ((src = module.getNextEntry()) != null) {
                URI target = warRoot.resolve(src.getName());
                if ("WEB-INF/web.xml".equals(src.getName())) {
                    byte[] buffer = getBytes(module);
                    context.addFile(target, new ByteArrayInputStream(buffer));
                    try {
                        WebAppDocument doc = (WebAppDocument) XmlBeansUtil.parse(new ByteArrayInputStream(buffer), WebAppDocument.type);
                        webApp = doc.getWebApp();
                    } catch (XmlException e) {
                        throw new DeploymentException("Unable to parse web.xml");
View Full Code Here

                        webApp = doc.getWebApp();
                    } catch (XmlException e) {
                        throw new DeploymentException("Unable to parse web.xml");
                    }
                } else {
                    context.addFile(target, module);
                }
            }

            if (webApp == null) {
                throw new DeploymentException("Did not find WEB-INF/web.xml in module");
View Full Code Here

        }

        // Copy over all files.
        for (Enumeration e = module.entries(); e.hasMoreElements();) {
            ZipEntry entry = (ZipEntry) e.nextElement();
            context.addFile(URI.create(entry.getName()), module, entry);
        }

        // Create the JBI deployment managed object
        try {
            Properties props = new Properties();
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.