[hibernate-issues] [Hibernate-JIRA] Commented: (HV-354) Improve message when building a ValidatorFactory but no provider is available in the classpath

Emmanuel Bernard (JIRA) noreply at atlassian.com
Sat Jul 31 17:42:40 EDT 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HV-354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=37967#action_37967 ] 

Emmanuel Bernard commented on HV-354:
-------------------------------------

It's actually neither HV nor BVAL but since that was an implementation issue, vie put it here. 

> Improve message when building a ValidatorFactory but no provider is available in the classpath
> ----------------------------------------------------------------------------------------------
>
>                 Key: HV-354
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-354
>             Project: Hibernate Validator
>          Issue Type: Improvement
>            Reporter: Emmanuel Bernard
>            Assignee: Hardy Ferentschik
>            Priority: Minor
>
> Caused by: javax.validation.ValidationException: Unable to find a
> default provider
> 	at javax.validation.Validation
> $GenericBootstrapImpl.configure(Validation.java:264)
> 	at
> javax.validation.Validation.buildDefaultValidatorFactory(Validation.java:111)
> 	
> The exception message should be clearer than it is today something like
> "Found no Bean Validation provider: unable to create a ValidatorFactory. Add a provider like Hibernate Validator (RI) to your classpath."

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list