Menu ▾ ▴

#4 Add details when throwing ConfigurationNotFoundException

open
nobody
Core (3)
5
2009-10-14
2009-10-14
No

When exception is thrown:

com.germinus.easyconf.ConfigurationNotFoundException: Error reading configuration for lbtr: The base properties file was not found

it's not entirely clear which file is misssin (also happens when missing global-properties).

It'd be easier for newbies to know which property file is being searched, and not found, to have the filename searched in the message, as well as which location is finally being searched (this may be harder to implement).

Discussion

  • Miguel Griffa

    Miguel Griffa - 2009-10-14

    Sorry for the anonymous post, I submitted it accidentally

     
  • Alvaro Gonzalez

    Alvaro Gonzalez - 2010-02-24

    Hi Miguel, sorry for not answering you before, but sourceforges notification system has changed. We are trying to move the project again and do this modifications and upgrades.

     
  • Alvaro Gonzalez

    Alvaro Gonzalez - 2010-02-24

    Anyway, Miguel, you can always see which jars have been loaded in your log:

    18:05:05,616 INFO [ConfigurationLoader:56] Properties for cms_tools loaded from [jar:file:/home/user/servers/tomcat/lib/ext/conf.jar!/global-configuration-env.properties, jar:file:/home/user/servers/tomcat/lib/ext/conf.jar!/global-configuration-prj.properties, jar:file:/home/user/servers/tomcat/lib/ext/conf.jar!/global-configuration.properties, file:/home/user/servers/tomcat/webapps/cms_tools/WEB-INF/classes/cms_tools.properties]

     

Log in to post a comment.