I am making form-validation using javax-validation and hibaernate-validator in Spring. Other than basic necessary JAR files for Spring.
I have inc
This is as per Hibernate Validator FAQ at
http://hibernate.org/validator/faq/
What’s the difference between Hibernate Validator 3, 4 and 5?
Hibernate Validator 3.x and 4.x/5.x are different codebases.
Hibernate Validator is the original validation framework from the Hibernate team and is now referred to as "Legacy Hibernate Validator". Hibernate Validator 4.x is the reference implementation of Bean Validation 1.0 (JSR 303), while Hibernate Validator 5.x is the reference implementation of Bean Validation 1.1 (JSR 349). Active development happens on the 5.x codebase.
Also as you are using spring validation framework for MVC:
<!-- JSR-303 support will be detected on classpath and enabled automatically -->
<mvc:annotation-driven />
Thus the discrepancy might be : hibernate-validator-5.x won't support JSR303, try downgrading the version to 4.x.
Also prefer Hibernate Validator 4.3.1.Final. rather than 4.2.x as both have different package structures.