The TestValidator class isn't part of the validator binary distro -
its only used by Validator's JUnit tests and the example. So if you
want to use it in your own project, then you'll need to copy it in
from the source distro and compile it.

Niall

On 8/17/06, Matthias Fischer <[EMAIL PROTECTED]> wrote:
Thanks.

However I got another problem:


I copied the example files to a new project. but when I run the
ValidatorExample I get:


Exception in thread "main"
org.apache.commons.validator.ValidatorException:
org.apache.commons.validator.TestValidator
    at
org.apache.commons.validator.ValidatorAction.loadValidationClass(ValidatorAction.java:623)
    at
org.apache.commons.validator.ValidatorAction.executeValidationMethod(ValidatorAction.java:531)
    at org.apache.commons.validator.Field.validateForRule(Field.java:766)
    at org.apache.commons.validator.Field.validate(Field.java:846)
    at org.apache.commons.validator.Form.validate(Form.java:290)
    at org.apache.commons.validator.Validator.validate(Validator.java:354)
    at ValidateExample.main(ValidateExample.java:106)


My project looks as follows:

lib\commons-digester-1.7.jar
lib\commons-collections-3.2.jar
lib\commons-beanutils.jar
lib\commons-logging-1.1.jar
lib\commons-validator-1.3.0.jar
lib\jakarta-oro-2.0.8.jar

src\validator-example.xml
src\commons-validator-1.3.0.js
src\ValidateBean.java
src\ValidateExample.java
src\applicationResources.properties


I did not find anything on the web concerning the above error. Can
anybody tell me how to fix this? Maybe I forgot any dependencies?


Kind regards
Matthias


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to