2 Replies Latest reply on Jun 3, 2009 10:32 AM by Ilya Shaikovsky

    Exception thrown by RichFaces demo page

    Alex Cougarman Apprentice

      This page http://livedemo.exadel.com/richfaces-demo/richfaces/ajaxValidator.jsf?c=ajaxValidator&tab=usage throws this exception when you enter some text in the first text field on the page and tab out of it:

      HTTP Status 500 -
      
      type Exception report
      
      message
      
      description The server encountered an internal error () that prevented it from fulfilling this request.
      
      exception
      
      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)
       org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
       org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
       org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
       org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
       org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
       org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
       org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
       org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
      
      root cause
      
      javax.faces.FacesException: javax.faces.FacesException: Could not build a default Bean Validator factory
       javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:714)
       javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
       javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
       javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
       javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
       javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
       javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
       javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
       javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
       javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
       javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
       javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
       javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
       javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
       org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:242)
       org.ajax4jsf.component.AjaxViewRoot.processValidators(AjaxViewRoot.java:455)
       com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
       com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
       com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
       javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
       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)
       org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
       org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
       org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
       org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
       org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
       org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
       org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
       org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
      
      root cause
      
      javax.faces.FacesException: Could not build a default Bean Validator factory
       org.richfaces.validator.BeanValidator.getValidator(BeanValidator.java:108)
       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)
       com.sun.facelets.el.TagValueExpression.setValue(TagValueExpression.java:93)
       org.richfaces.validator.ObjectValidator.validate(ObjectValidator.java:117)
       org.richfaces.validator.FacesBeanValidator.validate(FacesBeanValidator.java:101)
       org.richfaces.component.html.HtmlInputText.validateValue(HtmlInputText.java:52)
       javax.faces.component.UIInput.validate(UIInput.java:875)
       javax.faces.component.UIInput.executeValidate(UIInput.java:1072)
       javax.faces.component.UIInput.processValidators(UIInput.java:672)
       org.ajax4jsf.component.AjaxViewRoot$3.invokeContextCallback(AjaxViewRoot.java:439)
       org.ajax4jsf.component.ContextCallbackWrapper.invokeContextCallback(ContextCallbackWrapper.java:44)
       javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:711)
       javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
       javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
       javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
       javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
       javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
       javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
       javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
       javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
       javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
       javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
       javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
       javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
       javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
       org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:242)
       org.ajax4jsf.component.AjaxViewRoot.processValidators(AjaxViewRoot.java:455)
       com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
       com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
       com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
       javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
       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)
       org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
       org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
       org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
       org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
       org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
       org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
       org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
       org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
      
      root cause
      
      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)
       com.sun.facelets.el.TagValueExpression.setValue(TagValueExpression.java:93)
       org.richfaces.validator.ObjectValidator.validate(ObjectValidator.java:117)
       org.richfaces.validator.FacesBeanValidator.validate(FacesBeanValidator.java:101)
       org.richfaces.component.html.HtmlInputText.validateValue(HtmlInputText.java:52)
       javax.faces.component.UIInput.validate(UIInput.java:875)
       javax.faces.component.UIInput.executeValidate(UIInput.java:1072)
       javax.faces.component.UIInput.processValidators(UIInput.java:672)
       org.ajax4jsf.component.AjaxViewRoot$3.invokeContextCallback(AjaxViewRoot.java:439)
       org.ajax4jsf.component.ContextCallbackWrapper.invokeContextCallback(ContextCallbackWrapper.java:44)
       javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:711)
       javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
       javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
       javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
       javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
       javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
       javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
       javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
       javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
       javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
       javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
       javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
       javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
       javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
       org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:242)
       org.ajax4jsf.component.AjaxViewRoot.processValidators(AjaxViewRoot.java:455)
       com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
       com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
       com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
       javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
       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)
       org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
       org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
       org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
       org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
       org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
       org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
       org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
       org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
      
      note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.
      Apache Tomcat/5.5.20