commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Bourg <ebo...@apache.org>
Subject Re: [Commons Configuratin]: Suppress exceptions about missing optional property files?
Date Sun, 06 Apr 2008 15:42:03 GMT
Try using ConfigurationBuilder instead of ConfigurationFactory, you 
shouldn't have this exception.

Emmanuel Bourg


uma_rk@comcast.net a écrit :
> I am using the latest commons config on JDK1.6. Is there a way
> to suppress exceptions pertaining to missing optional property files?
> 
> Thanks,
> 
> /Ur
> 
> Configuration:
>         <properties fileName="/home/jdoe/my.properties" optional="true" />
> 
> Exception:
> Caused by: org.apache.commons.configuration.ConfigurationException: Cannot locate configuration
source /home/jdoe/my.properties
>         at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:215)
>         at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:195)
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message