[ 
https://issues.apache.org/struts/browse/WW-1785?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40405
 ] 

Tom Schneider commented on WW-1785:
-----------------------------------

It should work fine without extending ActionSupport, ActionSupport is just a 
convenience.  That method is looking for an 'execute' method that takes no 
parameters.  I'll try to create a JUnit test to reproduce the issue.  That 
should give me a good idea of why it's failing.

> Validator fails on an action that does not extend ActionSupport
> ---------------------------------------------------------------
>
>                 Key: WW-1785
>                 URL: https://issues.apache.org/struts/browse/WW-1785
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Actions
>    Affects Versions: 2.0.6
>         Environment: Windows XP
>            Reporter: Scott Stanlick
>         Assigned To: Tom Schneider
>             Fix For: 2.0.7, 2.1.0
>
>
> I had an S2 app working great until this morning when I changed my custom 
> BaseAction class to no longer extend ActionSupport.  I am getting the 
> following exception and quietly being directed to an incorrect Result.  I am 
> receiving the validator message in the server console.
> 09:46:53,416 ERROR Login:279 - Validation error for password: is required.
> SEVERE: Servlet.service() for servlet default threw exception
> java.lang.NoSuchMethodException: actions.Login.execute()
>       at java.lang.Class.getMethod(Class.java:1581)
>       at 
> org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.getActionMethod(AnnotationValidationInterceptor.java:55)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to