public void init() { Assert.notNull(this.configFile, "property 'configFile' mandatory"); try { configurator.loadConfig(this.configFile.getFile()); } catch (Exception e) { LOG.error("Failed to parse '" + configFile.getDescription() + "'", e); throw new BeanCreationException("Failed to parse '" + configFile.getDescription() + "'", e); } }
public void init() { Assert.notNull(this.configFile, "property 'configFile' mandatory"); try { configurator.loadConfig(this.configFile.getFile()); } catch (Exception e) { LOG.error("Failed to parse '" + configFile.getDescription() + "'", e); throw new BeanCreationException("Failed to parse '" + configFile.getDescription() + "'"); } }
public void init() { Assert.notNull(this.configFile, "property 'configFile' mandatory"); try { configurator.loadConfig(this.configFile.getFile()); } catch (Exception e) { LOG.error("Failed to parse '" + configFile.getDescription() + "'", e); throw new BeanCreationException("Failed to parse '" + configFile.getDescription() + "'", e); } }
@Override protected synchronized void startInternal() throws LifecycleException { try { File f = new File(getConfigFile()); if (!f.exists()) { String catalinaBase = System.getProperty("catalina.base"); if (catalinaBase != null && catalinaBase.length() > 0) { f = new File(catalinaBase.concat(File.separator + getConfigFile())); } } configurator = new FedizConfigurator(); configurator.loadConfig(f); LOG.debug("Fediz configuration read from " + f.getAbsolutePath()); } catch (JAXBException | IOException e) { throw new LifecycleException("Failed to load Fediz configuration", e); } super.startInternal(); }
@Override protected synchronized void startInternal() throws LifecycleException { try { File f = new File(getConfigFile()); if (!f.exists()) { String catalinaBase = System.getProperty("catalina.base"); if (catalinaBase != null && catalinaBase.length() > 0) { f = new File(catalinaBase.concat(File.separator + getConfigFile())); } } configurator = new FedizConfigurator(); configurator.loadConfig(f); LOG.debug("Fediz configuration read from " + f.getAbsolutePath()); } catch (JAXBException | IOException e) { throw new LifecycleException("Failed to load Fediz configuration", e); } super.startInternal(); }
configurator.loadConfig(f); LOG.debug("Fediz configuration read from " + f.getAbsolutePath()); } catch (JAXBException e) {
/** * */ @Override public void setConfiguration(AuthConfiguration configuration) { super.setConfiguration(configuration); // is called after the bean setting -> do initialization here LOG.debug(configuration.getInitParameterNames().toString()); try { File f = new File(getConfigFile()); if (!f.exists()) { String jettyHome = System.getProperty("jetty.home"); if (jettyHome != null && jettyHome.length() > 0) { f = new File(jettyHome.concat(File.separator + getConfigFile())); } } configurator = new FedizConfigurator(); configurator.loadConfig(f); LOG.debug("Fediz configuration read from " + f.getAbsolutePath()); } catch (JAXBException | IOException e) { //[TODO] use other exception throw new RuntimeException("Failed to load Fediz configuration", e); //throw new ServerAuthException("Failed to load Fediz configuration", // e); } }
/** * */ @Override public void setConfiguration(AuthConfiguration configuration) { super.setConfiguration(configuration); // is called after the bean setting -> do initialization here LOG.debug(configuration.getInitParameterNames().toString()); try { File f = new File(getConfigFile()); if (!f.exists()) { String jettyHome = System.getProperty("jetty.home"); if (jettyHome != null && jettyHome.length() > 0) { f = new File(jettyHome.concat(File.separator + getConfigFile())); } } configurator = new FedizConfigurator(); configurator.loadConfig(f); LOG.debug("Fediz configuration read from " + f.getAbsolutePath()); } catch (JAXBException | IOException e) { //[TODO] use other exception throw new RuntimeException("Failed to load Fediz configuration", e); //throw new ServerAuthException("Failed to load Fediz configuration", // e); } }