1 Reply Latest reply on Jun 8, 2009 5:05 AM by Ilya Shaikovsky

    ajaxValidator without using hibernate validator library

    Dianne Ravi Newbie

      I am trying to use the rich:ajaxValidator tag with standard JSF validators, however, I am getting an exception related to the hibernate validator library.
      So, is there a dependency on the hibernate validator library?

      java.lang.NoClassDefFoundError: org/hibernate/validator/ClassValidator
       org.richfaces.validator.BeanValidator.createValidator(BeanValidator.java:314)
       org.richfaces.validator.BeanValidator.getValidator(BeanValidator.java:270)
       org.richfaces.validator.BeanValidator.validateClass(BeanValidator.java:250)
       org.richfaces.validator.BeanValidator.validateBean(BeanValidator.java:235)
       org.richfaces.validator.BeanValidator.validate(BeanValidator.java:184)
       org.richfaces.validator.BeanValidator$ValidationResolver.setValue(BeanValidator.java:442)
       org.apache.el.parser.AstValue.setValue(AstValue.java:143)
       org.apache.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:249)
       com.sun.facelets.el.TagValueExpression.setValue(TagValueExpression.java:93)
       org.richfaces.validator.BeanValidator.validate(BeanValidator.java:140)
       org.richfaces.validator.FacesBeanValidator.validate(FacesBeanValidator.java:97)
       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)
       org.ajax4jsf.component.UIDataAdaptor.invokeOnComponent(UIDataAdaptor.java:1129)
       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.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
       org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
       org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390)
       org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)