Two Laptop Bag*
The moose likes Struts and the fly likes Struts Validator Framework Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Validator Framework" Watch "Struts Validator Framework" New topic

Struts Validator Framework

syruss kumar
Ranch Hand

Joined: Jul 23, 2009
Posts: 93
Hi all,

Thanks for giving support to resolve the issues.

I have written a Test Application to test Struts validation framework.
I have created a jsp and form,validation.xml .
But I got this error while i execute that application.i have surfed in the net but i couldn't find any relevant messages(Some post says that its a jar problem).

Can anyone give me a suggestion to resolve this ?
Thanks in Advance.

All search starts with beginner's luck and all search ends with victor's severly tested.
Siva Masilamani
Ranch Hand

Joined: Sep 19, 2008
Posts: 385
what is the error?

Do yu have validator-rules.xml?

Did you add plugin in the Struts-config.xml for validator framework?


Failure is not an option.
syruss kumar
Ranch Hand

Joined: Jul 23, 2009
Posts: 93
yes already i have added the plug-in in struts-config.xml

and the error is

SEVERE: java.lang.ClassNotFoundException: org.apache.struts.util.StrutsValidator
org.apache.commons.validator.ValidatorException: java.lang.ClassNotFoundException: org.apache.struts.util.StrutsValidator
at org.apache.commons.validator.ValidatorAction.loadValidationClass(
at org.apache.commons.validator.ValidatorAction.executeValidationMethod(
at org.apache.commons.validator.Field.validateForRule(
at org.apache.commons.validator.Field.validate(
at org.apache.commons.validator.Form.validate(
at org.apache.commons.validator.Validator.validate(
at org.apache.struts.validator.ValidatorForm.validate(
at org.apache.struts.action.RequestProcessor.processValidate(
at org.apache.struts.action.RequestProcessor.process(
at org.apache.struts.action.ActionServlet.process(
at org.apache.struts.action.ActionServlet.doPost(
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
at org.apache.catalina.core.StandardWrapperValve.invoke(
at org.apache.catalina.core.StandardContextValve.invoke(
at org.apache.catalina.core.StandardHostValve.invoke(
at org.apache.catalina.valves.ErrorReportValve.invoke(
at org.apache.catalina.core.StandardEngineValve.invoke(
at org.apache.catalina.connector.CoyoteAdapter.service(
at org.apache.coyote.http11.Http11Processor.process(
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(
at org.apache.tomcat.util.threads.ThreadPool$
at Source)
Siva Masilamani
Ranch Hand

Joined: Sep 19, 2008
Posts: 385
It seems the jar file is either missing or corrupted or not in the classpath.

Try using latest jar file.
David Newton

Joined: Sep 29, 2008
Posts: 12617

What version of Struts? What Struts jars are you deploying?
syruss kumar
Ranch Hand

Joined: Jul 23, 2009
Posts: 93
Hi ,

I have tried with struts1.3.10 jar and struts 1.2.6 jar.

Its in the classpath only if not we couldnt get other classes in struts.jar .

still its giving the same error.

Thanks in advance.
Siva Masilamani
Ranch Hand

Joined: Sep 19, 2008
Posts: 385
Are you using any IDE?

if not try adding the jar file under /WEB-INF/lib/
I agree. Here's the link:
subject: Struts Validator Framework
Similar Threads
LookupDispatch action with validator
Struts Validation problem
Validation framework is not working
Need help in learning struts
Help with validation rules for form with multiple submit buttons