Package com.sun.enterprise.deployment.io

Examples of com.sun.enterprise.deployment.io.WebDeploymentDescriptorFile


        notifyAppEvent(ApplicationEvent.AFTER_APPLICATION_UNLOAD);
        return true;
    }

    public void createRootMBean () throws MBeanException {
        WebDeploymentDescriptorFile wdf = null;

        java.util.Set webBundles = this.application.getWebBundleDescriptors();
   
        for(Iterator it=webBundles.iterator(); it.hasNext(); ) {
View Full Code Here


            // (this path will not be invoked by portable static verifier)
            if (ApplicationServer.getServerContext() != null) {
                File file = getDefaultWebXMLFile();
                if (file.exists()) {
                    fis = new FileInputStream(file);
                    WebDeploymentDescriptorFile wddf =
                        new WebDeploymentDescriptorFile();
                    wddf.setXMLValidation(false);
                    wbd =  (WebBundleDescriptor) wddf.read(fis);
                    defaultWebXMLLastModified = file.lastModified();
                } else {
                    /*
                     * If we do not find the file then we record the current
                     * system time as the lastModified time for the (empty)
View Full Code Here

       
        createFacesConfigDescriptor(descriptor);
       
        // run the ParseDD test
        if (getSchemaVersion(descriptor).compareTo("2.4") < 0) { // NOI18N
            WebDeploymentDescriptorFile ddf = new WebDeploymentDescriptorFile();
            File file = new File(getAbstractArchiveUri(descriptor),
                    ddf.getDeploymentDescriptorPath());
            FileInputStream is = new FileInputStream(file);
            try {
                if (is != null) {
                    Result result = new ParseDD().validateWebDescriptor(is);
                    result.setComponentName(getArchiveUri(descriptor));
View Full Code Here

        try {
            // parse default-web.xml contents
            URL defaultWebXml = getDefaultWebXML();
            if (defaultWebXml!=null)  {
                fis = defaultWebXml.openStream();
                WebDeploymentDescriptorFile wddf =
                    new WebDeploymentDescriptorFile();
                wddf.setXMLValidation(false);
                defaultWebBundleDesc.addWebBundleDescriptor(wddf.read(fis));
            }
        } catch (Exception e) {
            LogDomains.getLogger(WebArchivist.class, LogDomains.WEB_LOGGER).
                warning("Error in parsing default-web.xml");
        } finally {
View Full Code Here

       
        createFacesConfigDescriptor(descriptor);
       
        // run the ParseDD test
        if (getSchemaVersion(descriptor).compareTo("2.4") < 0) { // NOI18N
            WebDeploymentDescriptorFile ddf = new WebDeploymentDescriptorFile();
            File file = new File(getAbstractArchiveUri(descriptor),
                    ddf.getDeploymentDescriptorPath());
            FileInputStream is = new FileInputStream(file);
            try {
                if (is != null) {
                    Result result = new ParseDD().validateWebDescriptor(is);
                    result.setComponentName(getArchiveUri(descriptor));
View Full Code Here

TOP

Related Classes of com.sun.enterprise.deployment.io.WebDeploymentDescriptorFile

Copyright © 2018 www.massapicom. 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.