You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "SanJ.SANJAY" <gi...@gmail.com> on 2009/04/15 17:16:51 UTC
Struts 2 Sample application look for index() method
I have a struts 2 sample application integrated with my struts 1. Everything
is fine but the filter complains that it did not find index() method on the
action. I have only one method execute() in the action class. The
application is very simple one why does it says
java.lang.NoSuchMethodException: com.cec.strutsSample.ActionClass.index()
java.lang.Class.getMethod(Class.java:1605)
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.getActionMethod(AnnotationValidationInterceptor.java:75)
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:47)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
...
--
View this message in context: http://www.nabble.com/Struts-2-Sample-application-look-for-index%28%29-method-tp23061024p23061024.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts 2 Sample application look for index() method
Posted by "SanJ.SANJAY" <gi...@gmail.com>.
don't guess.
newton.dave wrote:
>
> SanJ.SANJAY wrote:
>> No its not truncated.
>
> Oh, that's too bad.
>
>> The application is very simple helloworld application.
>
> It's not so simple we can guess what your code and configuration looks
> like with any degree of accuracy.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Struts-2-Sample-application-look-for-index%28%29-method-tp23061024p23061488.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts 2 Sample application look for index() method
Posted by Dave Newton <ne...@yahoo.com>.
SanJ.SANJAY wrote:
> No its not truncated.
Oh, that's too bad.
> The application is very simple helloworld application.
It's not so simple we can guess what your code and configuration looks
like with any degree of accuracy.
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts 2 Sample application look for index() method
Posted by "SanJ.SANJAY" <gi...@gmail.com>.
The problem is resolved, I had to remove the struts2-rest plugin.
SanJ.SANJAY wrote:
>
> No its not truncated.
> The application is very simple helloworld application.
>
>
>
> newton.dave wrote:
>>
>> SanJ.SANJAY wrote:
>>> I have a struts 2 sample application integrated with my struts 1.
>>> Everything
>>> is fine but the filter complains that it did not find index() method on
>>> the
>>> action. I have only one method execute() in the action class. The
>>> application is very simple one why does it says
>>>
>>> java.lang.NoSuchMethodException:
>>> com.cec.strutsSample.ActionClass.index()
>>> java.lang.Class.getMethod(Class.java:1605)
>>> org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.getActionMethod(AnnotationValidationInterceptor.java:75)
>>> org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:47)
>>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
>>
>> I think the rest of your post, the part where you included the
>> configuration and Java code, got truncated.
>>
>> Dave
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Struts-2-Sample-application-look-for-index%28%29-method-tp23061024p23061303.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Struts 2 Sample application look for index() method
Posted by Security Management <li...@secmgmt.com>.
We need your struts2 xml configuration file and possibly the java code to
help.
That, or someone with better ESP than me will have to help.
M.
-----Original Message-----
From: SanJ.SANJAY [mailto:girish.sh@gmail.com]
Sent: Wednesday, April 15, 2009 11:25 AM
To: user@struts.apache.org
Subject: Re: Struts 2 Sample application look for index() method
No its not truncated.
The application is very simple helloworld application.
newton.dave wrote:
>
> SanJ.SANJAY wrote:
>> I have a struts 2 sample application integrated with my struts 1.
>> Everything
>> is fine but the filter complains that it did not find index() method on
>> the
>> action. I have only one method execute() in the action class. The
>> application is very simple one why does it says
>>
>> java.lang.NoSuchMethodException: com.cec.strutsSample.ActionClass.index()
>> java.lang.Class.getMethod(Class.java:1605)
>>
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.ge
tActionMethod(AnnotationValidationInterceptor.java:75)
>>
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.do
Intercept(AnnotationValidationInterceptor.java:47)
>>
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Method
FilterInterceptor.java:87)
>
> I think the rest of your post, the part where you included the
> configuration and Java code, got truncated.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
--
View this message in context:
http://www.nabble.com/Struts-2-Sample-application-look-for-index%28%29-metho
d-tp23061024p23061188.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts 2 Sample application look for index() method
Posted by "SanJ.SANJAY" <gi...@gmail.com>.
No its not truncated.
The application is very simple helloworld application.
newton.dave wrote:
>
> SanJ.SANJAY wrote:
>> I have a struts 2 sample application integrated with my struts 1.
>> Everything
>> is fine but the filter complains that it did not find index() method on
>> the
>> action. I have only one method execute() in the action class. The
>> application is very simple one why does it says
>>
>> java.lang.NoSuchMethodException: com.cec.strutsSample.ActionClass.index()
>> java.lang.Class.getMethod(Class.java:1605)
>> org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.getActionMethod(AnnotationValidationInterceptor.java:75)
>> org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:47)
>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
>
> I think the rest of your post, the part where you included the
> configuration and Java code, got truncated.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Struts-2-Sample-application-look-for-index%28%29-method-tp23061024p23061188.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts 2 Sample application look for index() method
Posted by Dave Newton <ne...@yahoo.com>.
SanJ.SANJAY wrote:
> I have a struts 2 sample application integrated with my struts 1. Everything
> is fine but the filter complains that it did not find index() method on the
> action. I have only one method execute() in the action class. The
> application is very simple one why does it says
>
> java.lang.NoSuchMethodException: com.cec.strutsSample.ActionClass.index()
> java.lang.Class.getMethod(Class.java:1605)
> org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.getActionMethod(AnnotationValidationInterceptor.java:75)
> org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:47)
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
I think the rest of your post, the part where you included the
configuration and Java code, got truncated.
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org