title: Can't resolve validationmessages.properties
body: <p>When I run my project, localized validation messages located in <strong>src/main/resources</strong> (when the project is not packaged and run with an IDE-embedded runner) or <strong>WEB-INF/classes</strong> (when the project is packaged and deployed) are not resolved. I always get the default messages. </p>
  
  <p>Yet, when I am running tests, the messages are resolved properly...</p>
  
  <p>I use vanilla validation (Spring does not interfere).</p>
  
  <pre><code>validator = Validation.byDefaultProvider().configure().messageInterpolator(new LocaleAwareMessageInterpolator(locale)).buildValidatorFactory().getValidator();
  </code></pre>
  
  <p>LocaleAwareMessageInterpolator extends the standard ResourceBundleMessageInterpolator.</p>
  
  <pre><code>public class LocaleAwareMessageInterpolator extends ResourceBundleMessageInterpolator {
    private Locale defaultLocale = Locale.FRENCH;
  
    public LocaleAwareMessageInterpolator(Locale defaultLocale) {
      this.defaultLocale = defaultLocale;
    }
  
    @Override
    public String interpolate(final String messageTemplate, final Context context) {
      return interpolate(messageTemplate, context, defaultLocale);
    }
  
    @Override
    public String interpolate(final String messageTemplate, final Context context, final Locale locale) {
      try {
        return super.interpolate(messageTemplate, context, locale);
      } catch (ExceptionInInitializerError e) {...}
    }
  }
  </code></pre>
  
  <p>Should I move them to another location ? 
  Should I set some parameters somewhere to give out the location of the .properties ?</p>