In a standalone project I am getting:
What should I do ? ThanksCode:Caused by: javax.validation.ValidationException: Unable to find a default provider
In a standalone project I am getting:
What should I do ? ThanksCode:Caused by: javax.validation.ValidationException: Unable to find a default provider
Try to add the following bean in your context application :
and put hibernate-validator-x.x.jar in your classpath (hibernate-validator is the reference implementation for jsr-303).Code:<bean id="validator" class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean" />
Hope this helps
Thanks ! It was rather the latter that helped, but I will take the first tip into consideration anyway - just in case. Thanks again.