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

Hardy Ferentschik (JIRA) noreply at atlassian.com
Mon Mar 19 10:02:48 EDT 2012


     [ https://hibernate.onjira.com/browse/BVAL-281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hardy Ferentschik updated BVAL-281:
-----------------------------------

    Pull Requests: https://github.com/beanvalidation/beanvalidation-api/pull/3

> Improve message when building a ValidatorFactory but no provider is available in the classpath
> ----------------------------------------------------------------------------------------------
>
>                 Key: BVAL-281
>                 URL: https://hibernate.onjira.com/browse/BVAL-281
>             Project: Bean Validation
>          Issue Type: Improvement
>          Components: spec-general
>            Reporter: Emmanuel Bernard
>            Assignee: Hardy Ferentschik
>            Priority: Minor
>             Fix For: 1.1
>
>
> {noformat}
> 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)
> {noformat}
> 	
> The exception message should be clearer than it is today something like:
> {quote}
> "Found no Bean Validation provider: unable to create a ValidatorFactory. Add a provider like Hibernate Validator (RI) to your classpath."
> {quote}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list