title: @Valid Bean validation not working in jersey
body: <p>In my pom.xml file i have these fallowing dependencies added </p>
  
  <pre><code> &lt;dependency&gt;
       &lt;groupId&gt;org.glassfish.jersey.ext&lt;/groupId&gt;
       &lt;artifactId&gt;jersey-bean-validation&lt;/artifactId&gt;
       &lt;version&gt;2.25.1&lt;/version&gt;
    &lt;/dependency&gt; 
  </code></pre>
  
  <p>and in my CustomApplication class which extends <code>ResourceConfig</code> i have registered these 2 fallowing properties </p>
  
  <pre><code>property(ServerProperties.BV_SEND_ERROR_IN_RESPONSE, true); 
  property(ServerProperties.BV_DISABLE_VALIDATE_ON_EXECUTABLE_OVERRIDE_CHECK, true);
  </code></pre>
  
  <p>I have a DTO (POJO) like this </p>
  
  <pre><code>import java.util.ArrayList;
  import javax.validation.constraints.NotNull;
  import org.hibernate.validator.constraints.NotBlank;
  
  public class PlotDTO {
  
  private String guid;
  @NotNull
  private String plot_name;
  @NotNull
  private String farmer_id;
  @NotNull
  private float distance_from_warehouse;
  @NotNull
  private int area;
  @NotNull
  private float sand;
  .............
  .............
  }
  </code></pre>
  
  <p>And in my resource class i am trying to validate this  usingg <code>@Valid</code> </p>
  
  <pre><code>@Path("addplot")
  @POST
  @Produces(MediaType.APPLICATION_JSON)
  @Consumes(MediaType.APPLICATION_JSON)
  public Response addPlot(@Valid PlotDTO plot) 
  {
   ..............
   ..............
  }
  </code></pre>
  
  <p>when i send an request none of these @NotNull validations are working </p>
  
  <p>can some one help me with this </p>