You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Struts Two <st...@yahoo.ca> on 2009/06/05 02:15:06 UTC

Re: (PROBLEM SOLVED) WAS 6.1: There is no Action mapped for namespace / and action name j_security_check

Finally, the problem with form based authentication got resovled. However; here is a summary of what happens that we get the error:

There is no Action mapped for namespace / and actionName j_security_check

With form-based authentication, Websphere authenticates a user by using URI <hostname>/<context-root>/j_security_check.

Due to the fact that in struts 2.1 default action extension list (struts.action.extension) has changed from just 'action' to 'action' plus " , j_security_check is mistaken as an struts action.

Line:

config = configuration.getRuntimeConfiguration().getActionConfig(namespace, actionName);

in class com.opensymphony.xwork2.DefaultActionProxy located in method prepare() returns null for actionName j_security_check" and consquently
"no mapping error" is displayed.

Solution:

as described in migration guide in the following link [which makes it clear why everything in struts 2.0 works but not struts 2.1]:

http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html

Add the following to your struts.xml

<constant name="struts.action.extension" value="action" />

and then in your web.xml, change:

    <filter-mapping>
        <filter-name>struts2</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>  
    
    TO 

    <filter-mapping>
        <filter-name>struts2</filter-name>
        <url-pattern>*.action</url-pattern>
    </filter-mapping>   

The form based authentication works just like basic authentication. You still need to have the following properties set:

com.ibm.ws.webcontainer.assumefiltersuccessonsecurityerror = true
com.ibm.ws.webcontainer.invokefilterscompatibility = true




      __________________________________________________________________
Reclaim your name @ymail.com or @rocketmail.com. Get your new email address now! Go to http://ca.promos.yahoo.com/jacko/

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


RE: (PROBLEM SOLVED) WAS 6.1: There is no Action mapped for namespace / and action name j_security_check

Posted by Martin Gainty <mg...@hotmail.com>.
Did you get a chance to contact IBM to apprise them of this solution?

Félicitations sur ce travail le plus excellent

!

Martin 
______________________________________________ 
Note de déni et de confidentialité
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Thu, 4 Jun 2009 17:15:06 -0700
> From: strutstwo@yahoo.ca
> Subject: Re: (PROBLEM SOLVED) WAS 6.1: There is no Action mapped for namespace / and action name j_security_check
> To: user@struts.apache.org
> 
> 
> Finally, the problem with form based authentication got resovled. However; here is a summary of what happens that we get the error:
> 
> There is no Action mapped for namespace / and actionName j_security_check
> 
> With form-based authentication, Websphere authenticates a user by using URI <hostname>/<context-root>/j_security_check.
> 
> Due to the fact that in struts 2.1 default action extension list (struts.action.extension) has changed from just 'action' to 'action' plus " , j_security_check is mistaken as an struts action.
> 
> Line:
> 
> config = configuration.getRuntimeConfiguration().getActionConfig(namespace, actionName);
> 
> in class com.opensymphony.xwork2.DefaultActionProxy located in method prepare() returns null for actionName j_security_check" and consquently
> "no mapping error" is displayed.
> 
> Solution:
> 
> as described in migration guide in the following link [which makes it clear why everything in struts 2.0 works but not struts 2.1]:
> 
> http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html
> 
> Add the following to your struts.xml
> 
> <constant name="struts.action.extension" value="action" />
> 
> and then in your web.xml, change:
> 
>     <filter-mapping>
>         <filter-name>struts2</filter-name>
>         <url-pattern>/*</url-pattern>
>     </filter-mapping>  
>     
>     TO 
> 
>     <filter-mapping>
>         <filter-name>struts2</filter-name>
>         <url-pattern>*.action</url-pattern>
>     </filter-mapping>   
> 
> The form based authentication works just like basic authentication. You still need to have the following properties set:
> 
> com.ibm.ws.webcontainer.assumefiltersuccessonsecurityerror = true
> com.ibm.ws.webcontainer.invokefilterscompatibility = true
> 
> 
> 
> 
>       __________________________________________________________________
> Reclaim your name @ymail.com or @rocketmail.com. Get your new email address now! Go to http://ca.promos.yahoo.com/jacko/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

_________________________________________________________________
Hotmail® has ever-growing storage! Don’t worry about storage limits. 
http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage_062009

RE: (PROBLEM SOLVED) WAS 6.1: There is no Action mapped for namespace / and action name j_security_check

Posted by "Mitchell, Steven" <St...@umb.com>.
Changing my mapping to <url-pattern>*.action</url-pattern> broke my
submit buttons. I had to add ".action" to my form action parameter
(action="myAction.action"). Is there some other setting to accomplish
the same thing?

-----Original Message-----
From: Struts Two [mailto:strutstwo@yahoo.ca] 
Sent: Thursday, June 04, 2009 7:15 PM
To: Struts Users Mailing List
Subject: Re: (PROBLEM SOLVED) WAS 6.1: There is no Action mapped for
namespace / and action name j_security_check


Finally, the problem with form based authentication got resovled.
However; here is a summary of what happens that we get the error:

There is no Action mapped for namespace / and actionName
j_security_check

With form-based authentication, Websphere authenticates a user by using
URI <hostname>/<context-root>/j_security_check.

Due to the fact that in struts 2.1 default action extension list
(struts.action.extension) has changed from just 'action' to 'action'
plus " , j_security_check is mistaken as an struts action.

Line:

config =
configuration.getRuntimeConfiguration().getActionConfig(namespace,
actionName);

in class com.opensymphony.xwork2.DefaultActionProxy located in method
prepare() returns null for actionName j_security_check" and consquently
"no mapping error" is displayed.

Solution:

as described in migration guide in the following link [which makes it
clear why everything in struts 2.0 works but not struts 2.1]:

http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-stru
ts-20x-to-21x.html

Add the following to your struts.xml

<constant name="struts.action.extension" value="action" />

and then in your web.xml, change:

    <filter-mapping>
        <filter-name>struts2</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>  
    
    TO 

    <filter-mapping>
        <filter-name>struts2</filter-name>
        <url-pattern>*.action</url-pattern>
    </filter-mapping>   

The form based authentication works just like basic authentication. You
still need to have the following properties set:

com.ibm.ws.webcontainer.assumefiltersuccessonsecurityerror = true
com.ibm.ws.webcontainer.invokefilterscompatibility = true




      __________________________________________________________________
Reclaim your name @ymail.com or @rocketmail.com. Get your new email
address now! Go to http://ca.promos.yahoo.com/jacko/

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


------------------------------------------------------------------------------
NOTICE:  This electronic mail message and any attached files are confidential.  The information is exclusively for the use of the individual or entity intended as the recipient.  If you are not the intended recipient, any use, copying, printing, reviewing, retention, disclosure, distribution or forwarding of the message or any attached file is not authorized and is strictly prohibited.  If you have received this electronic mail message in error, please advise the sender by reply electronic mail immediately and permanently delete the original transmission, any attachments and any copies of this message from your computer system. Thank you.

==============================================================================


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