NoSuchMethodException thrown when using a custom validator

T

Tony Piazza

Does anyone out there know what could be causing a NoSuchMethodException to
be thrown when I use a custom validator in Struts 1.1?

Here is the scenario:

I have created a class named StateValidator that contains a single method
named isValid(). The method signature is the same as the standard
validators that are included in the Struts 1.1 release. I refer to the
validator in validation.xml for a specific <field> element. The validator
is configured in validator-rules.xml with the same methodParameters as the
standard validators included in that file. When Struts attempts to validate
the form I get a NoSuchMethodException thrown in
org.apache.commons.validator.Validator (line 401). I was sure that I must
have my method signatures somehow messed up but I have reviewed that several
times and that is not the problem. Does anyone out there have experience
with this problem?

Thanks in advance for your assistance!

Tony Piazza
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,076
Latest member
OrderKetoBeez

Latest Threads

Top