commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Yuen" <>
Subject RE: Commons validator
Date Thu, 17 Aug 2006 05:09:07 GMT
Thank you for  your answer.

-----Original Message-----
From: Niall Pemberton []
Sent: Wed 8/16/2006 5:41 PM
To: Jakarta Commons Users List
Subject: Re: Commons validator
When your struts application starts up it parses the validation xml
files you specify for Struts's validator plugin and creates the
configuration objects needed by Commons Validator and stores them in
application scope. These are the "resources" its referring to.

When your ActionForm's validate method is called it tries to retrieve
those "resources" from application scope to get the configured
validation rules to use for the form.

If it can't find the "resources" then it looks like something has gone
wrong at startup - first place to check the configuration you have in
struts for validator - and the logs to see if there are any
errors/warnings at startup time.

You'll probably get more help asking Struts related questions for
validator on the Struts user list.


On 8/17/06, Joe Yuen <> wrote:
> I am trying to setup my struts web application to use the commons validator. However,
I must not have set it up properly. After going through the setup I am getting the following
> java.lang.IllegalArgumentException: Resources cannot be null.
>         org.apache.commons.validator.Validator.<init>(
>         org.apache.struts.validator.Resources.initValidator(
>         org.apache.struts.validator.DynaValidatorForm.validate(
>         org.apache.struts.action.RequestProcessor.processValidate(
>         org.apache.struts.action.RequestProcessor.process(
>         org.apache.struts.action.ActionServlet.process(
>         org.apache.struts.action.ActionServlet.doGet(
>         javax.servlet.http.HttpServlet.service(
>         javax.servlet.http.HttpServlet.service(
> Can anyone enlighten me on what resources this error is referring to?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message