Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 464 Vote(s) - 3.53 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spring MVC 3 Validation - Unable to find a default provider

#1
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?
Reply

#2
Yes, you should include Hibernate Validator library in order to use it. It doesn't depend on Hibernate itself.
Reply

#3
Make sure you're using Hibernate 4.
Reply

#4
If you are using Maven, you must add a dependency to the **Hibernate Validator Annotation Processor**.

<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator-annotation-processor</artifactId>
<version>4.1.0.Final</version>
</dependency>

You can find it in the **JBoss repository** :

<repository>
<id>JBoss Repository</id>
<url>https://repository.jboss.org/nexus/content/repositories/releases</url>
<name>JBoss Repository</name>
</repository>
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through