ValidationException when @Autowired-ing a DAO

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

Answers


I'm not certain, but my best guess is that validation-api is not actually an implementation of validation, so you still need to include one such as Hibernate Validator.


Need Your Help

WebBrowser control won't display an https site that IE8 on the same PC will

winforms internet-explorer-8 webbrowser-control

In IE8, I get the follow warning, but if I choose to continue the site displays properly.

How can I check what version/edition of Visual Studio is installed programmatically?

visual-studio registry

I could read registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0.