0 Replies Latest reply on Oct 12, 2009 8:29 AM by Daniel Margreth

    Problems with ajax:validator and 3.3.2 GA

    Daniel Margreth Newbie

      When changing from richfaces 3.3.1 GA to 3.3.2 GA the ajax:validation does not work anymore. We received the follwoing error message:

      13:55:25,391 WARN [ObjectValidator] 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:875)
       at javax.faces.component.UIInput.executeValidate(UIInput.java:1072)
       at javax.faces.component.UIInput.processValidators(UIInput.java:672)
       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)
       at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
       at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
       at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
       at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
       at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
       at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
       at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
       at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:239)
       at org.ajax4jsf.component.AjaxViewRoot.processValidators(AjaxViewRoot.java:458)
       at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
       at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
       at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
       at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
       at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
       at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.ClassNotFoundException: javax.validation.MessageInterpolator
       at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
       at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
      


      After changing back to 3.3.1 GA the validation works fine again.

      Is this a bug or do we have to add some jar files? Thanks for your answers.