title: No validator could be found for constraint 'javax.validation.constraints.NotBlank' validating type 'java.lang.String'
body: <p>I'm using Hibernate validator to validate my beans.</p>
  
  <p>Actually I have this dependencies on my POM</p>
  
  <pre class="lang-xml prettyprint-override"><code>    &lt;!-- Hibernate validator - Bean validation API Implementation --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-validator&lt;/artifactId&gt;
          &lt;version&gt;6.0.11.Final&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- Verify validation annotations usage at compile time --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-validator-annotation-processor&lt;/artifactId&gt;
          &lt;version&gt;6.0.11.Final&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- Unified Expression Language - Spec --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javax.el&lt;/groupId&gt;
          &lt;artifactId&gt;javax.el-api&lt;/artifactId&gt;
          &lt;version&gt;3.0.1-b06&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- Unified Expression Language - Implementation --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.glassfish.web&lt;/groupId&gt;
          &lt;artifactId&gt;javax.el&lt;/artifactId&gt;
          &lt;version&gt;2.2.6&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;javax.validation&lt;/groupId&gt;
          &lt;artifactId&gt;validation-api&lt;/artifactId&gt;
          &lt;version&gt;2.0.1.Final&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>And this a pice of my bean</p>
  
  <pre><code>import org.hibernate.annotations.ColumnDefault;
  import javax.persistence.*;
  import javax.validation.constraints.NotBlank;
  import javax.validation.constraints.NotNull;
  import javax.validation.constraints.Size;
  import java.util.Date;
  
  public class Casa {
  
      @Id
      @GeneratedValue(strategy= GenerationType.IDENTITY)
      private Integer id;
  
      @Column(name="nomcaac") @NotBlank(message = "{casa.nomcaac.null}") @Size(min = 0, max = 300, message = "{casa.nomcaac.size}")
      private String nomcaac;
  </code></pre>
  
  <p>Now the problem comes when i try to validate my bean, i get this error message </p>
  
  <blockquote>
    <p>No validator could be found for constraint
    'javax.validation.constraints.NotBlank' validating type
    'java.lang.String'. Check configuration for 'nomcaac'</p>
  </blockquote>
  
  <p>I can't figure out whats my problem, I think I have the right dependencies according to this <a href="https://howtodoinjava.com/hibernate/hibernate-validator-java-bean-validation/" rel="noreferrer">page</a>.</p>