facebook

Error while using Validator plug-in with Struts

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #231631 Reply

    namita22
    Member

    Hi,
    I get the error stack trace (given in the end) at run-time while using Validator plugin after adding Struts capability to my web project.

    I have commons-validator.jar, struts.jar and jakarta-oro.jar in my build path and these are also set in ‘Order & Export’.

    Another thing I would like to know is how can I know what version of these jars is included when I add Struts capabilites, because I want to work with the latest version available.

    ——————– Stack Trace ————————-
    Jun 23, 2005 1:04:41 PM org.apache.struts.validator.ValidatorForm validate
    SEVERE: org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)
    org.apache.commons.validator.ValidatorException: org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)
    at org.apache.commons.validator.ValidatorAction.loadValidationMethod(ValidatorAction.java:627)
    at org.apache.commons.validator.ValidatorAction.executeValidationMethod(ValidatorAction.java:557)
    at org.apache.commons.validator.Field.validateForRule(Field.java:827)
    at org.apache.commons.validator.Field.validate(Field.java:906)
    at org.apache.commons.validator.Form.validate(Form.java:174)
    at org.apache.commons.validator.Validator.validate(Validator.java:367)
    at org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:112)
    at org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:921)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:206)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:534)

    Thanks:
    Namita

    #231649 Reply

    Riyad Kalla
    Member

    Namita,
    We ship Struts 1.2.4, we are working on improving our representation of libraries we ship for a future release, we realize it’s a bit confusing.

    Also, you might check your app server’s lib dir to see if it has any Struts libraries in it already that is causing this conflict.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Error while using Validator plug-in with Struts

You must be logged in to post in the forum log in