struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Struts Two <struts...@yahoo.ca>
Subject RE: (PROBLEM SOLVED) WAS 6.1: There is no Action mapped for namespace / and action name j_security_check
Date Fri, 05 Jun 2009 01:01:28 GMT

I had a PMR open with IBM and L3 support pointed me to the right direction by sifting through
the logs.

--- On Fri, 6/5/09, Martin Gainty <mgainty@hotmail.com> wrote:

> From: Martin Gainty <mgainty@hotmail.com>
> Subject: RE: (PROBLEM SOLVED) WAS 6.1: There is no Action mapped for namespace / and
action name j_security_check
> To: "Struts Users Mailing List" <user@struts.apache.org>
> Received: Friday, June 5, 2009, 12:47 AM
> 
> 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


      __________________________________________________________________
The new Internet Explorer® 8 - Faster, safer, easier.  Optimized for Yahoo!  Get it Now for
Free! at http://downloads.yahoo.com/ca/internetexplorer/

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


Mime
View raw message