[richfaces-issues] [JBoss JIRA] Commented: (RF-7226) AjaxValidator - Could not build a default Bean Validator factory

Alexander Smirnov (JIRA) jira-events at lists.jboss.org
Thu May 21 20:36:56 EDT 2009


    [ https://jira.jboss.org/jira/browse/RF-7226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12468775#action_12468775 ] 

Alexander Smirnov commented on RF-7226:
---------------------------------------

Jboss AS has too complex classloader. That API classes could be loaded from any other application that was deployed to the same server.
Separate class loading domain should be set in the jboss- ... deployment descriptor to avoid that interference.
Unfortunately, jsr299 validator does not work properly with the implementation ( I tried that with the hibernate-validator version 4.0.0.Beta1 ).
I fixed that in the 3.3.2 branch.
 

> AjaxValidator - Could not build a default Bean Validator factory
> ----------------------------------------------------------------
>
>                 Key: RF-7226
>                 URL: https://jira.jboss.org/jira/browse/RF-7226
>             Project: RichFaces
>          Issue Type: Bug
>          Components: component
>    Affects Versions: 3.3.1
>         Environment: JBoss AS 5.0.1.GA, JDK 1.5 or just http://livedemo.exadel.com/richfaces-demo/
>            Reporter: Lukas Fryc
>
> When I tried to put something in inputs using <rich:ajaxValidator event="onblur"/> on AjaxValidator's page
> and next I let it validate (blur input), it resulted to HTTP Status 500:
> javax.servlet.ServletException: javax.faces.FacesException: Could not build a default Bean Validator factory
> 	javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
> 	org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
> 	org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:38)
> 	org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> 	org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
> 	org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> ...
> javax.validation.ValidationException: Unable to find a default provider
> 	javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:248)
> 	javax.validation.Validation.buildDefaultValidatorFactory(Validation.java:115)
> 	org.richfaces.validator.BeanValidator.getValidator(BeanValidator.java:105)
> 	org.richfaces.validator.BeanValidator.validate(BeanValidator.java:41)
> 	org.richfaces.validator.ObjectValidator$ValidationResolver.setValue(ObjectValidator.java:411)
> 	org.jboss.el.parser.AstPropertySuffix.setValue(AstPropertySuffix.java:73)
> 	org.jboss.el.parser.AstValue.setValue(AstValue.java:84)
> 	org.jboss.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:249)
> ...

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

        



More information about the richfaces-issues mailing list