0 Replies Latest reply on Jul 23, 2008 11:52 AM by Mats Ekström

    Validation -> ServletException

    Mats Ekström Newbie

      Hi,


      I'm trying to validate a simple inputText field, but I get a ServletException:



      Exception during request processing:
      Caused by javax.servlet.ServletException with message: "org/hibernate/validator/ClassValidator$1 : org/hibernate/annotations/common/reflection/Filter"

      (The rest follows below)


      Any idea?
      Thanks, Mats


      xhtml:


      <span class="errors">
           <h:messages globalOnly="true"/>
       </span>
      ...
      <h:inputText value="#{statusOutSearch.dateSearch}" style="width: 65px;" title="#{bundle.dateFormat}">
          <s:validate/>
      </h:inputText>
      



      java:


      //    @Length(min=4, max=8, message="#{messages['dateSearch']}")
          @Pattern(regex="[0-9]+")
          private String dateSearch;
      (+ getter and setter)
      



      Rest of the exception:


      weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:310)
      weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
      org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
      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:44)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154)
      org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:260)
      org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:366)
      org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:493)
      org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
      weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
      weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:26)
      weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
      weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3151)
      weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
      weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
      weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
      weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
      weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
      weblogic.work.ExecuteThread.run(ExecuteThread.java:179)