Examples of Deployable


Examples of org.apache.geronimo.deployment.Deployable

     */
    private List<Class> getFacesClasses(WebAppType webApp, WebModule webModule) throws DeploymentException {
        log.debug("getFacesClasses( " + webApp.toString() + "," + '\n' +
                           (webModule != null ? webModule.getName() : null) + " ): Entry");

        Deployable deployable = webModule.getDeployable();
        Bundle bundle = webModule.getEarContext().getDeploymentBundle();

        // 1. META-INF/faces-config.xml
        List<Class> classes = new ArrayList<Class>();
        URL url = deployable.getResource("META-INF/faces-config.xml");
        if (url != null) {
            parseConfigFile(url, bundle, classes);
        }

        // 2. WEB-INF/faces-config.xml
        url = deployable.getResource("WEB-INF/faces-config.xml");
        if (url != null) {
            parseConfigFile(url, bundle, classes);
        }

        // 3. javax.faces.CONFIG_FILES
        ParamValueType[] paramValues = webApp.getContextParamArray();
        for (ParamValueType paramValue : paramValues) {
            if (paramValue.getParamName().getStringValue().trim().equals("javax.faces.CONFIG_FILES")) {
                String configFiles = paramValue.getParamValue().getStringValue().trim();
                StringTokenizer st = new StringTokenizer(configFiles, ",", false);
                while (st.hasMoreTokens()) {
                    String configfile = st.nextToken().trim();
                    if (!configfile.equals("")) {
                        if (configfile.startsWith("/")) {
                            configfile = configfile.substring(1);
                        }
                        url = deployable.getResource(configfile);
                        if (url == null) {
                            throw new DeploymentException("Could not locate config file " + configfile);
                        } else {
                            parseConfigFile(url, bundle, classes);
                        }
View Full Code Here

Examples of org.apache.geronimo.deployment.Deployable

                                Map servletLocations,
                                Environment environment,
                                Map sharedContext) throws DeploymentException {
        Map portMap = null;
        String path = isEJB ? "META-INF/webservices.xml" : "WEB-INF/webservices.xml";
        Deployable deployable = module.getDeployable();
        URL wsDDUrl = deployable.getResource(path);
        if (wsDDUrl != null) {
            InputStream in;
            try {
                in = wsDDUrl.openStream();
            } catch (IOException e) {
View Full Code Here

Examples of org.apache.geronimo.deployment.Deployable

     */
    static List<Class> discoverWebServices(Module module,
                                           Bundle bundle,
                                           boolean isEJB)
            throws DeploymentException {
        Deployable deployable = module.getDeployable();
        if (deployable instanceof DeployableJarFile) {
            return discoverWebServices( ((DeployableJarFile) deployable).getJarFile(), isEJB, new BundleClassLoader(bundle));
        } else if (deployable instanceof DeployableBundle) {
            return discoverWebServices( ((DeployableBundle) deployable).getBundle(), isEJB);
        } else {
            throw new DeploymentException("Unsupported deployable: " + deployable.getClass());
        }
    }
View Full Code Here

Examples of org.apache.geronimo.deployment.Deployable

            boolean standAlone = earEnvironment == null;

           if (parentModule instanceof WebModule)  {

               Deployable deployable = parentModule.getDeployable();
               if (!(deployable instanceof DeployableJarFile)) {
                   throw new IllegalArgumentException("Expected DeployableJarFile");
               }

                JarFile war = ((DeployableJarFile) deployable).getJarFile();
View Full Code Here

Examples of org.codehaus.cargo.container.deployable.Deployable

     *
     * @param warLocation the war location
     * @return a container ready to start
     */
    protected InstalledLocalContainer getContainer(final String warLocation) {
        Deployable war = new WAR(warLocation);
        LocalConfiguration configuration = new Tomcat6xStandaloneLocalConfiguration(
                "target/tomcat6x");
        configuration.addDeployable(war);
        InstalledLocalContainer webapp = new Tomcat6xInstalledLocalContainer(
                configuration);
View Full Code Here

Examples of org.codehaus.cargo.container.deployable.Deployable

        System.out.println("[INFO] container id: " + containerId);

        // Construct the war, using the container id and the path to the war file
        String deployablePath = System.getProperty("cargo.deployable");
        System.out.println("[INFO] deployable: " + deployablePath);
        Deployable war = new DefaultDeployableFactory().createDeployable(
                containerId, deployablePath, DeployableType.WAR);

        // Container configuration
        ConfigurationFactory configurationFactory = new DefaultConfigurationFactory();
View Full Code Here

Examples of org.codehaus.cargo.container.deployable.Deployable

{

   protected void execute(JBossJMXDeployer deployer)
   {
      //
      Deployable deployable = new EAR(getFile().getAbsolutePath());

      //
      deployer.undeploy(deployable);
   }
View Full Code Here

Examples of org.codehaus.cargo.container.deployable.Deployable

   }

   protected void execute(JBossJMXDeployer deployer)
   {
      //
      Deployable deployable = new EAR(getFile().getAbsolutePath());

      //
      deployer.deploy(deployable);
   }
View Full Code Here

Examples of org.codehaus.cargo.container.deployable.Deployable

        System.out.println("[INFO] container id: " + containerId);

        // Construct the war, using the container id and the path to the war file
        String deployablePath = System.getProperty("cargo.deployable");
        System.out.println("[INFO] deployable: " + deployablePath);
        Deployable war = new DefaultDeployableFactory().createDeployable(
                containerId,
                deployablePath,
                DeployableType.WAR);

        // Container configuration
View Full Code Here

Examples of org.codehaus.cargo.container.deployable.Deployable

     * @param deployableType
     *            The type of deployable.
     */
    private void addDeployable(final LocalConfiguration configuration, final String path, final DeployableType deployableType) {
        // retrieve deployable file
        final Deployable deployable = new DefaultDeployableFactory().createDeployable(configurationName, path, deployableType);

        // add deployable
        configuration.addDeployable(deployable);
    }
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.