I get an error when trying to set up Spring MVC validation.
javax.validation.ValidationException: Unable to find a default provider
I read in the documents that the default provider they use is the hibernate-validator. Do I need to include this library to get validation to work? Is it okay to include this library even though i'm not using hibernate for my project?
Make sure you're using Hibernate 4.
If you are using Maven, you must add a dependency to the Hibernate Validator Annotation Processor.
You can find it in the JBoss repository :
Yes, you should include Hibernate Validator library in order to use it. It doesn't depend on Hibernate itself.