Package com.volantis.mcs.runtime.configuration

Examples of com.volantis.mcs.runtime.configuration.ConfigurationException


    public XMLConfigurationBuilder() throws ConfigurationException {

        try {
            digester = createDigester();
        } catch (SAXException e) {
            throw new ConfigurationException(
                        exceptionLocalizer.format("digester-creation-error"),
                        e);
        }

        MarinerRuleSet marinerSet = new MarinerRuleSet("");
View Full Code Here


            throws ConfigurationException {
        MarinerConfiguration config;
        try {
            config = (MarinerConfiguration) digester.parse(inputSource);
        } catch (Exception e) {
            throw new ConfigurationException(
                        exceptionLocalizer.format("config-parse-error"), e);
        }
        return config;
    }
View Full Code Here

        final SCCConfigurationResolver resolver = (SCCConfigurationResolver)
                paramNameToResolversMap.get(CONFIG_FILE_PARAM);
        try {
            file = resolver.locateFileOrResource(path, false, mustExist);
        } catch (LogException e) {
            throw new ConfigurationException(e.getLocalizedMessage(), e);
        }

        return file;
    }
View Full Code Here

                    // because it's a resource identifier.
                    absConfigRID = configLocation.substring(0,
                            configLocation.lastIndexOf('/') + 1);
                } else {
                    // If is is still null, the config file could not be found
                    throw new ConfigurationException(exceptionLocalizer.format(
                            "configuration-file-not-found", configLocation));
                }
            }
        } else {
            absConfigPath = f.getParent();
View Full Code Here

    public InputSource getSchemaInputSource() throws ConfigurationException {
        InputStream is = createConfigInputStream(
                XMLConfigurationBuilder.SCHEMA_NAME);

        if (is == null) {
            throw new ConfigurationException(exceptionLocalizer.format(
                    "configuration-file-not-found",
                    XMLConfigurationBuilder.SCHEMA_NAME));
        }

        return new InputSource(is);
View Full Code Here

        SCCConfigurationResolver resolver = (SCCConfigurationResolver)
                paramNameToResolversMap.get(CONFIG_FILE_PARAM);
        try {
            return resolver.createConfigInputStream(location);
        } catch (LogException e) {
            throw new ConfigurationException(e.getLocalizedMessage(), e);
        }
    }
View Full Code Here

    public String resolveRelativeFile(String path) {
        try {
            File file = configContext.getConfigRelativeFile(path, true);
            if (file == null) {
                throw new ConfigurationException(
                        "The directory you provided does not exist");
            }
            return file.getAbsolutePath();
        } catch (ConfigurationException e) {
            throw new ExtendedRuntimeException(e);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.runtime.configuration.ConfigurationException

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.