Confusing with convention plugin

View: New views
4 Messages — Rating Filter:   Alert me  

Confusing with convention plugin

by Leegorous :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm new here.
I follow the http://struts.apache.org/2.x/docs/convention-plugin.html
Some examples are not working in my case.
like the simplest one, no action exist, always throws

java.lang.IllegalArgumentException: The index() is not defined in
action class com.opensymphony.xwork2.ActionSupport

And the example in Chaining section is throwing the same exception.

I start the project from struts2-archetype-blank, just delete the
original strust2 config
Do anybody know what happen, or know how to diagnose.

Thanks in advance.

Leegorous

--
MyWeblog http://leegorous.net/blog/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


Re: Confusing with convention plugin

by Musachy Barroso :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

do you have the REST plguin in your lib dir?

musachy

On Tue, Jul 7, 2009 at 11:26 PM, Leegorous<leegorous@...> wrote:

> Hi,
>
> I'm new here.
> I follow the http://struts.apache.org/2.x/docs/convention-plugin.html
> Some examples are not working in my case.
> like the simplest one, no action exist, always throws
>
> java.lang.IllegalArgumentException: The index() is not defined in
> action class com.opensymphony.xwork2.ActionSupport
>
> And the example in Chaining section is throwing the same exception.
>
> I start the project from struts2-archetype-blank, just delete the
> original strust2 config
> Do anybody know what happen, or know how to diagnose.
>
> Thanks in advance.
>
> Leegorous
>
> --
> MyWeblog http://leegorous.net/blog/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@...
> For additional commands, e-mail: user-help@...
>
>



--
"Hey you! Would you help me to carry the stone?" Pink Floyd

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


Re: Confusing with convention plugin

by Leegorous :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The other examples are doing well.
So.

On Wed, Jul 8, 2009 at 10:48 PM, Musachy Barroso<musachy@...> wrote:

> do you have the REST plguin in your lib dir?
>
> musachy
>
> On Tue, Jul 7, 2009 at 11:26 PM, Leegorous<leegorous@...> wrote:
>> Hi,
>>
>> I'm new here.
>> I follow the http://struts.apache.org/2.x/docs/convention-plugin.html
>> Some examples are not working in my case.
>> like the simplest one, no action exist, always throws
>>
>> java.lang.IllegalArgumentException: The index() is not defined in
>> action class com.opensymphony.xwork2.ActionSupport
>>
>> And the example in Chaining section is throwing the same exception.
>>
>> I start the project from struts2-archetype-blank, just delete the
>> original strust2 config
>> Do anybody know what happen, or know how to diagnose.
>>
>> Thanks in advance.
>>
>> Leegorous
>>
>> --
>> MyWeblog http://leegorous.net/blog/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@...
>> For additional commands, e-mail: user-help@...
>>
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@...
> For additional commands, e-mail: user-help@...
>
>



--
猛击 http://leegorous.net/blog/ 吧!

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


Re: Confusing with convention plugin

by dusty :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Let the record the response was non-responsive.   Struts is trying to call index() on your action.  Since you likely don't have index() in your action it seems likely that the REST plugin is in your path and is trying to auto-map a URL to the index() method of a registered Controller.  

So lets try again.  Are you using the REST plugin?   What URL are you navigating to that throws this error.  What annotations are you using?

Leegorous wrote:
The other examples are doing well.
So.

On Wed, Jul 8, 2009 at 10:48 PM, Musachy Barroso<musachy@gmail.com> wrote:
> do you have the REST plguin in your lib dir?
>
> musachy
>
> On Tue, Jul 7, 2009 at 11:26 PM, Leegorous<leegorous@gmail.com> wrote:
>> Hi,
>>
>> I'm new here.
>> I follow the http://struts.apache.org/2.x/docs/convention-plugin.html
>> Some examples are not working in my case.
>> like the simplest one, no action exist, always throws
>>
>> java.lang.IllegalArgumentException: The index() is not defined in
>> action class com.opensymphony.xwork2.ActionSupport
>>
>> And the example in Chaining section is throwing the same exception.
>>
>> I start the project from struts2-archetype-blank, just delete the
>> original strust2 config
>> Do anybody know what happen, or know how to diagnose.
>>
>> Thanks in advance.
>>
>> Leegorous
>>
>> --
>> MyWeblog http://leegorous.net/blog/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>



--
猛击 http://leegorous.net/blog/ 吧!

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org