3 Replies Latest reply on Dec 27, 2010 6:34 PM by ilya40umov

    WARNING: Bean Validator could not be instantiated

      Using: RichFaces 3.3.2.SR1, Tomcat 6.0.20

      I have been getting the following stack trace when I use the <rich:ajaxValidator> tag with the onblur event:

      WARNING: Bean Validator could not be instantiated
      java.lang.NoClassDefFoundError: javax/validation/MessageInterpolator
       at org.richfaces.validator.ObjectValidator.createInstance(ObjectValidator.java:54)
       at org.richfaces.validator.ObjectValidator.getInstance(ObjectValidator.java:85)
       at org.richfaces.validator.FacesBeanValidator.validate(FacesBeanValidator.java:103)
       at org.richfaces.component.html.HtmlInputText.validateValue(HtmlInputText.java:52)
       at javax.faces.component.UIInput.validate(UIInput.java:888)
       at javax.faces.component.UIInput.executeValidate(UIInput.java:1085)
       at javax.faces.component.UIInput.processValidators(UIInput.java:685)
       at org.ajax4jsf.component.AjaxViewRoot$3.invokeContextCallback(AjaxViewRoot.java:442)
       at org.ajax4jsf.component.ContextCallbackWrapper.invokeContextCallback(ContextCallbackWrapper.java:44)
       at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:722)
       ... bunch more
      Caused by: java.lang.ClassNotFoundException: javax.validation.MessageInterpolator
       at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
       at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
       ... 56 more
      


      The funny thing is that the actual validation is still working just fine. Is this something to worry about?

      Relevant Code:
      <a4j:form id="frmPhotosToPdf">
       <h:column>
       <h:outputLabel value="#{msgs.photo_to_pdf_label_pdf_title}" for="txtPdfTitle" style="font-weight:bold;"/><br/>
       <h:inputText value="#{photoToPDFBean.pdfTitle}" id="txtPdfTitle" maxlength="40" validatorMessage="Maximum 40 characters.">
       <f:validateLength maximum="10"/>
       <rich:ajaxValidator event="onblur"/>
       </h:inputText><br/>
       <rich:message for="txtPdfTitle" errorClass="errorMessage">
       <f:facet name="errorMarker">
       <h:graphicImage value="/icons/exclamation.png" class="errorMarker"/>
       </f:facet>
       </rich:message>
       </h:column>
      </a4j:form>