Package org.sentinel.configuration

Examples of org.sentinel.configuration.ConfigurationException


            Document doc = dBuilder.parse(configurationFile);
            doc.getDocumentElement().normalize();
            return doc;
        }
        catch(SAXException ex) {
            throw new ConfigurationException("Configuration XML file is invalid: " +
                ex.getMessage());
        }
        catch(ParserConfigurationException ex) {
            throw new ConfigurationException(ex.getMessage());
        }
        catch(IOException ex) {
            throw new ConfigurationException(ex.getMessage());
        }
    }
View Full Code Here


    public void setUp() throws Exception
    {
        // launch the server
        URL resource = Main.class.getResource(configurationFile);
        if(resource == null) {
            throw new ConfigurationException("Could not find configuration file " +
                configurationFile);
        }
    server = new Sentinel(resource.getFile());
    server.run();
       
View Full Code Here

            if(child.getNodeName().equals("applications")) {
                applications = (Applications) new Applications().parseRoot(child);
                continue;
            }
           
            throw new ConfigurationException("Bad child node '" + child.getNodeName() + "'");
        }
       
        return this;
    }
View Full Code Here

            try {
                this.application = Class.forName(value);
                return true;
            }
            catch(ClassNotFoundException ex) {
                throw new ConfigurationException("No such class '" + ex.getMessage() + "'");
            }
        }
       
        if(name.equals("prefix")) {
            this.prefix = value;
View Full Code Here

TOP

Related Classes of org.sentinel.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.