I’m trying to add JPA support for my app however, I’m getting this error:
Caused by: javax.validation.ValidationException: Unable to find a default provider
at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:264)
at org.springframework.validation.beanvalidation.LocalValidatorFactoryBean.afterPropertiesSet(LocalValidatorFactoryBean.java:183)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
... 37 more
Although I have these jars in the WEB-INF/lib folder:
validation-api-1.0.0.GA.jar
validation-api-1.0.0.GA-sources.jar
I’m not certain, but my best guess is that
validation-apiis not actually an implementation of validation, so you still need to include one such as Hibernate Validator.