This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes validator exception in Struts 1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "validator exception in Struts 1" Watch "validator exception in Struts 1" New topic
Author

validator exception in Struts 1

shanky raja
Greenhorn

Joined: Dec 19, 2011
Posts: 17

i am getting the below exception in a struts application used with validation framework.


18 Dec, 2012 6:06:57 PM org.apache.struts.validator.ValidatorForm validate
SEVERE: No ValidatorAction named required found for field sid
org.apache.commons.validator.ValidatorException: No ValidatorAction named required found for field sid

at org.apache.commons.validator.Field.handleMissingAction(Field.java:897)
at org.apache.commons.validator.Field.validate(Field.java:873)
at org.apache.commons.validator.Form.validate(Form.java:288)
at org.apache.commons.validator.Validator.validate(Validator.java:351)
at org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:116)
at org.apache.struts.chain.commands.servlet.ValidateActionForm.validate(ValidateActionForm.java:58)
at org.apache.struts.chain.commands.AbstractValidateActionForm.execute(AbstractValidateActionForm.java:120)
at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Unknown Source)
18 Dec, 2012 6:06:57 PM org.apache.struts.chain.commands.servlet.CreateAction createAction
INFO: Initialize action of type: com.jlc.struts1.RegisterAction


Different files used in this application are:-

web.xml



struts-config.xml



validator-rules.xml



myform-validations.xml

Raaja Gotluru
Ranch Hand

Joined: Mar 02, 2010
Posts: 108
Hi,

If you have removed or not configured the required rule then that is the reason the compiler is throwing that error. Just copy and place the required rule from the original file available in any of the web example provided by struts.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: validator exception in Struts 1
 
Similar Threads
Problem in I18N in Spring
Error in First Hibernate Example
How to avoid empty tag when marshalling using Castor 1.2
Servlet action is currently unavailable Error When Run My Struts Application
page is not shown only url is showing