title: Unable to load the file from filesystem using ResourceBundle
body: <pre><code>public static void loadFilters() throws MalformedURLException {
          File filtersFile = new File(CONFIG_DIR + "/" + FILTERS_FILE);
          URL[] urls = {filtersFile.toURI().toURL()};
          ClassLoader loader = new URLClassLoader(urls);
          ResourceBundle bundle = ResourceBundle.getBundle(FILTERS_BASE, Locale.getDefault(), loader);
          if (StringUtils.isNotBlank(getStringValue(bundle, ALLOW_TYPE_PATTERN_KEY))) {
              ALLOWED_TYPES = Pattern.compile(getStringValue(bundle, ALLOW_TYPE_PATTERN_KEY));
          }
          if (StringUtils.isNotBlank(getStringValue(bundle, DENY_TYPE_PATTERN_KEY))) {
              DENIED_TYPES = Pattern.compile(getStringValue(bundle, DENY_TYPE_PATTERN_KEY));
          }
          ALLOWED_MIME_TYPES = getListValue(bundle, ALLOW_MIME_PATTERN_KEY);
          DENIED_MIME_TYPES = getListValue(bundle, DENY_MIME_PATTERN_KEY);
      }
  </code></pre>
  
  <p>I am trying to load properties file using resource bundle kept outside the code in a separate directory. But when I try to do this way(above code) I am getting error as </p>
  
  <pre><code>ERROR [main] Can't find bundle for base name filters, locale en_US
  </code></pre>
  
  <p>And If I am keeping this file filters.properties in src/main/resources folder then this code is working fine... but when I keep it outside it doesn't works.. Don't know why..</p>
  
  <p>And CONFIG_DIR contains \my\dir\conf and FILTERS_FILE contains filters.properties file.</p>
  
  <p>FILTERS_FILE has value <code>filters.properties</code> and FILTERS_BASE has value <code>filters</code> and urls got the value as <code>[file:/C:/my/dir/conf/filters.properties]</code></p>
  
  <p>And filters.properties file is in /my/dir/conf/filters.properties</p>