title: javax.validation.UnexpectedTypeException: No validator could be found for type:
body: <p>the below is error we are getting when we try to put validation for size and pattern for Integer type.
  can you suggest, we need to set the size and pattern validation for Integer type in validator bean.xml</p>
  
  <pre><code>05:58:57,342 ERROR [ErrorLoggerEJBInterceptor] Unexpected system error: No validator could be found for type: java.lang.Integer
  javax.validation.UnexpectedTypeException: No validator could be found for type: java.lang.Integer
          at org.hibernate.validator.engine.ConstraintTree.verifyResolveWasUnique(ConstraintTree.java:244)
  </code></pre>