Re: org.apache.commons.validator.ValidatorException: No such validation method:

2006-11-26 Thread Chris Pratt

Might even be better to put in an XML version check (either using the
DOCTYPE or a specific  tag or attribute) to make sure that the
correct version is being used.
 (*Chris*)

On 11/24/06, Niall Pemberton <[EMAIL PROTECTED]> wrote:


On 11/24/06, Paul Benedict <[EMAIL PROTECTED]> wrote:
> Niall,
>
> This sounds like an enhancement request. If the validator methods do not
> match, perhaps that advice should be in the error message that Struts
> generates? Maybe a message like "method(x,y,z) requested but signature
> is method(x,y,z,a): correct validator-rules.xml" ?

Yes good idea - comes up often enough - change the exception message
in Commons Validator, wouldn't be able to refer to validator-rules.xml
though as thats a Struts artifact.

If you want to open  ticket for it:
http://jakarta.apache.org/commons/validator/issue-tracking.html

Niall

> Niall Pemberton wrote:
> > Paul meant replace the "validator-rules.xml" thats shipped with
> > Struts. Sounds like you have an old version. The signatures hes
> > referring to are the "methodParams" element in the validator
> > definitions. You get this error when whats specified there doesn't
> > match up with the actual method signature in the java class
> > (FieldChecks for standard struts validators)
>
> Paul
>
> -
> 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]




Re: org.apache.commons.validator.ValidatorException: No such validation method:

2006-11-24 Thread Niall Pemberton

On 11/24/06, Paul Benedict <[EMAIL PROTECTED]> wrote:

Niall,

This sounds like an enhancement request. If the validator methods do not
match, perhaps that advice should be in the error message that Struts
generates? Maybe a message like "method(x,y,z) requested but signature
is method(x,y,z,a): correct validator-rules.xml" ?


Yes good idea - comes up often enough - change the exception message
in Commons Validator, wouldn't be able to refer to validator-rules.xml
though as thats a Struts artifact.

If you want to open  ticket for it:
http://jakarta.apache.org/commons/validator/issue-tracking.html

Niall


Niall Pemberton wrote:
> Paul meant replace the "validator-rules.xml" thats shipped with
> Struts. Sounds like you have an old version. The signatures hes
> referring to are the "methodParams" element in the validator
> definitions. You get this error when whats specified there doesn't
> match up with the actual method signature in the java class
> (FieldChecks for standard struts validators)

Paul

-
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]



Re: org.apache.commons.validator.ValidatorException: No such validation method:

2006-11-24 Thread Paul Benedict

Niall,

This sounds like an enhancement request. If the validator methods do not 
match, perhaps that advice should be in the error message that Struts 
generates? Maybe a message like "method(x,y,z) requested but signature 
is method(x,y,z,a): correct validator-rules.xml" ?


Niall Pemberton wrote:

Paul meant replace the "validator-rules.xml" thats shipped with
Struts. Sounds like you have an old version. The signatures hes
referring to are the "methodParams" element in the validator
definitions. You get this error when whats specified there doesn't
match up with the actual method signature in the java class
(FieldChecks for standard struts validators)


Paul

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



Re: org.apache.commons.validator.ValidatorException: No such validation method:

2006-11-24 Thread Thomas Thomas

Thank u very much.


Re: org.apache.commons.validator.ValidatorException: No such validation method:

2006-11-24 Thread Niall Pemberton

On 11/24/06, Thomas Thomas <[EMAIL PROTECTED]> wrote:

I use Struts 1.3.5
When u talk about signatures, u talk about the doctypes of the validators
xml files ?
Because I copied pasted them from the struts 1.3.5 examples of validators.


Paul meant replace the "validator-rules.xml" thats shipped with
Struts. Sounds like you have an old version. The signatures hes
referring to are the "methodParams" element in the validator
definitions. You get this error when whats specified there doesn't
match up with the actual method signature in the java class
(FieldChecks for standard struts validators):

   

Niall

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



Re: org.apache.commons.validator.ValidatorException: No such validation method:

2006-11-24 Thread Thomas Thomas

I use Struts 1.3.5
When u talk about signatures, u talk about the doctypes of the validators
xml files ?
Because I copied pasted them from the struts 1.3.5 examples of validators.


Re: org.apache.commons.validator.ValidatorException: No such validation method:

2006-11-23 Thread Paul Benedict
When you upgrade Struts, you must also replace your validator.xml file. 
The signatures have changed between versions.


Thomas Thomas wrote:

Hi,
been one week I have this error 

When I try to submit a form,
I have this error :
 

23-nov.-2006 23:38:32 org.apache.struts.validator.DynaValidatorForm 
validate

GRAVE: No such validation method:
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors,
javax.servlet.http.HttpServletRequest)
org.apache.commons.validator.ValidatorException: No such validation method:
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors,
javax.servlet.http.HttpServletRequest)
   at org.apache.commons.validator.ValidatorAction.loadValidationMethod(
ValidatorAction.java:603)
   at org.apache.commons.validator.ValidatorAction.executeValidationMethod(
ValidatorAction.java:533)
   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 org.apache.struts.validator.DynaValidatorForm.validate(
DynaValidatorForm.java:117)
   at org.apache.struts.chain.commands.servlet.ValidateActionForm.validate(
ValidateActionForm.java:53)
   at org.apache.struts.chain.commands.AbstractValidateActionForm.execute(
AbstractValidateActionForm.java:100)
   at org.apache.struts.chain.commands.ActionCommandBase.execute(
ActionCommandBase.java:48)
   at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
   at org.apache.commons.chain.generic.LookupCommand.execute(
LookupCommand.java:304)
   at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
   at org.apache.struts.chain.ComposableRequestProcessor.process(
ComposableRequestProcessor.java:280)
   at org.apache.struts.action.ActionServlet.process(ActionServlet.java
:1858)
   at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:459)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:252)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
   at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:213)
   at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:178)
   at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:126)
   at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:105)
   at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
   at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection 


(Http11BaseProtocol.java:664)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
PoolTcpEndpoint.java:527)
   at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
LeaderFollowerWorkerThread.java:80)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:684)
   at java.lang.Thread.run(Thread.java:595)
 



This is in my struts-config.xml :
[...]
   
   
[...]
   


   
[]

 
   
[...]

Here are my validation.xml and my validator-rules.xml (located both in
/WEB-INF/validators/) :



http://jakarta.apache.org/commons/dtds/validator_1_3_0.dtd";>


   
   

   
   
   
   
   



http://jakarta.apache.org/commons/dtds/validator_1_3_0.dtd";>


 
   
 
   
 
   
 




Any help would be very very welcome !
Thank u !



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