title: Bean validation configuration not picked up if placed in library jar
body: <p>I'm using Bean Validation 1.1 in a Java EE 7 web application. Validation works fine but I've trouble getting it to work on both Wildfly and Liberty.</p>
  
  <p>I've configured a custom message interpolator via validation.xml which is placed in a library jar:</p>
  
  <pre><code>ROOT
  |-- WEB-INF
      |-- lib
          |-- my-validation.jar
              |-- mypackage
                  |-- MyMessageInterpolator.class
              |-- META-INF
                  |--validation.xml
  </code></pre>
  
  <p>When deployed to Wildfly 14 everything works as expected. On Liberty 19 however <code>MyMessageInterpolator</code> is found, <strong>but not invoked</strong> during validation (e.g. when using <code>@Valid</code> in a REST resource).</p>
  
  <p>I then moved <code>validation.xml</code> directly into the web app (without moving the message interpolator itself):</p>
  
  <pre><code>ROOT
  |-- WEB-INF
      |-- classes
          |-- META-INF
              |-- validation.xml
      |-- lib
          |-- my-validation.jar
              |-- mypackage
                  |-- MyMessageInterpolator.class
  </code></pre>
  
  <p>This is working on Liberty but I'd expect it to work also when <code>validation.xml</code> is placed in a library jar. The <a href="https://beanvalidation.org/1.1/spec/#xml-config" rel="nofollow noreferrer">Bean Validation 1.1 spec</a> says:</p>
  
  <blockquote>
    <p>Unless explicitly ignored [...], a <code>Configuration</code> takes into account the configuration available in <code>META-INF/validation.xml</code>.</p>
  </blockquote>
  
  <p>What am I missing here?</p>