Results 1 to 3 of 3

Thread: JSR 303 problem

  1. #1
    Join Date
    Jul 2008
    Posts
    239

    Default JSR 303 problem

    In a standalone project I am getting:


    Code:
    Caused by: javax.validation.ValidationException: Unable to find a default provider
    What should I do ? Thanks

  2. #2
    Join Date
    Dec 2008
    Posts
    11

    Default

    Try to add the following bean in your context application :

    Code:
    <bean id="validator" class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean" />
    and put hibernate-validator-x.x.jar in your classpath (hibernate-validator is the reference implementation for jsr-303).

    Hope this helps

  3. #3
    Join Date
    Jul 2008
    Posts
    239

    Default

    Thanks ! It was rather the latter that helped, but I will take the first tip into consideration anyway - just in case. Thanks again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •