RE: (PROBLEM SOLVED) WAS 6.1: There is no Action mapped for namespace / and action name j_security_check
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:struts...@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-namestruts2/filter-name url-pattern/*/url-pattern /filter-mapping TO filter-mapping filter-namestruts2/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-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@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-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: (PROBLEM SOLVED) WAS 6.1: There is no Action mapped for namespace / and action name j_security_check
Not anything that I am aware of. --- On Fri, 6/5/09, Mitchell, Steven steven.mitch...@umb.com wrote: From: Mitchell, Steven steven.mitch...@umb.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, 1:54 PM 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:struts...@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-namestruts2/filter-name url-pattern/*/url-pattern /filter-mapping TO filter-mapping filter-namestruts2/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-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@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-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org __ Looking for the perfect gift? Give the gift of Flickr! http://www.flickr.com/gift/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
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-namestruts2/filter-name url-pattern/*/url-pattern /filter-mapping TO filter-mapping filter-namestruts2/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-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: (PROBLEM SOLVED) WAS 6.1: There is no Action mapped for namespace / and action name j_security_check
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: struts...@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-namestruts2/filter-name url-pattern/*/url-pattern /filter-mapping TO filter-mapping filter-namestruts2/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-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@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
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 mgai...@hotmail.com wrote: From: Martin Gainty mgai...@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: struts...@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-namestruts2/filter-name url-pattern/*/url-pattern /filter-mapping TO filter-mapping filter-namestruts2/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-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@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-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
WAS 6.1: There is no Action mapped for namespace / and action name j_security_check
I'm still trying to get Struts 2.1.6 deployed on WAS 6.1. I'm fighting a couple of related issues. Index.jsp forwards to /MyContext/myNamespace/myAction.action, but gets this error: There is no Action mapped for namespace / and action name . - [unknown location] If I type http://myServer/myContext/myNamespace/myAction.action in the browser I get to my log-in page decorated by SiteMesh. If I submit the login page I get this error: There is no Action mapped for namespace / and action name j_security_check The site works fine on Tomcat 5.5. WebSphere 6.1 is fully patched, is using reverse class loading, and we have set the following property: com.ibm.ws.webcontainer.invokeFiltersCompatibility = true Here are the filters that we are using: filter filter-namestruts2-prepare/filter-name filter-class org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter /filter-class /filter filter filter-namesitemesh/filter-name filter-class com.opensymphony.module.sitemesh.filter.PageFilter /filter-class /filter filter filter-namestruts2-execute/filter-name filter-class org.apache.struts2.dispatcher.ng.filter.StrutsExecuteFilter /filter-class /filter The security looks like this: security-constraint web-resource-collection web-resource-nameMy Secure Stuff/web-resource-name url-pattern/MyNamespace/*/url-pattern /web-resource-collection auth-constraint role-nameMyRole/role-name /auth-constraint /security-constraint login-config auth-methodFORM/auth-method form-login-config form-login-page/security/login.jsp/form-login-page form-error-page/security/login_error.jsp/form-error-page /form-login-config /login-config security-role descriptionMy Role/description role-nameMyRole/role-name /security-role Thoughts? Steve Mitchell http://www.ByteworksInc.com -- 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-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: WAS 6.1: There is no Action mapped for namespace / and action name j_security_check
Steven Not familiar with your setup and if it works in tomcat and not WAS, even stranger. But for what it's worth here is my hack, I made a copy of StrutsPrepareAndExecuteFilter and in the doFilter where it said ActionMapping mapping = prepare.findActionMapping(request, response); if (mapping == null) { boolean handled = execute.executeStaticResourceRequest(request, response); I added ActionMapping mapping = prepare.findActionMapping(request, response); if (mapping != null) { if (.equals(mapping.getName())) { mapping = null; } } if (mapping == null) { boolean handled = execute.executeStaticResourceRequest(request, response); not ideal, but fixed my prob HTH Ron -- View this message in context: http://www.nabble.com/2.1.6-convention-plugin-problem-tp23813162p23834864.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: WAS 6.1: There is no Action mapped for namespace / and action name j_security_check
I will look at that. Meanwhile, I found that WAS logged an error (this was after the WAS admin tried changing the filter from /* to /[my context]/* --Start of DE processing-- = [5/29/09 13:50:09:369 CDT] , key = javax.servlet.ServletException com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest() 309 Exception = javax.servlet.ServletException Source = com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest() probeid = 309 Stack Dump = javax.servlet.ServletException: Filter [struts2]: could not be initialized at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.init(FilterInstance Wrapper.java:156) at com.ibm.ws.webcontainer.filter.WebAppFilterManager._loadFilter(WebAppFil terManager.java:471) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter(WebAppFilt erManager.java:385) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterInstanceWrap per(WebAppFilterManager.java:244) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChain(WebApp FilterManager.java:302) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilter Manager.java:792) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilter Manager.java:679) at com.ibm.ws.webcontainer.servlet.FileServletWrapper.handleRequest(FileSer vletWrapper.java:416) at com.ibm.ws.wswebcontainer.servlet.StaticFileServletWrapper.handleRequest (StaticFileServletWrapper.java:93) at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleReques t(DefaultExtensionProcessor.java:714) at com.ibm.ws.wswebcontainer.extension.DefaultExtensionProcessor.handleRequ est(DefaultExtensionProcessor.java:113) at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3440) at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:815 ) at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1 461) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:1 18) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscriminatio n(HttpInboundLink.java:458) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformatio n(HttpInboundLink.java:387) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLi nk.java:267) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscr iminators(NewConnectionInitialReadCallback.java:214) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(Ne wConnectionInitialReadCallback.java:113) at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(Ai oReadCompletionListener.java:165) at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture. java:217) at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFu ture.java:161) at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136) at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195) at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java :743) at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473) Dump of callerThis = null Exception = javax.servlet.ServletException Source = com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest() probeid = 309 Dump of callerThis = null -Original Message- From: Ron Chan [mailto:rc...@i-tao.com] Sent: Tuesday, June 02, 2009 10:26 AM To: user@struts.apache.org Subject: Re: WAS 6.1: There is no Action mapped for namespace / and action name j_security_check Steven Not familiar with your setup and if it works in tomcat and not WAS, even stranger. But for what it's worth here is my hack, I made a copy of StrutsPrepareAndExecuteFilter and in the doFilter where it said ActionMapping mapping = prepare.findActionMapping(request, response); if (mapping == null) { boolean handled = execute.executeStaticResourceRequest(request, response); I added ActionMapping mapping = prepare.findActionMapping(request, response); if (mapping != null) { if (.equals(mapping.getName())) { mapping = null; } } if (mapping == null) { boolean handled = execute.executeStaticResourceRequest(request, response); not ideal, but fixed my prob HTH Ron -- View this message in context: http://www.nabble.com/2.1.6-convention-plugin-problem-tp23813162p2383486 4.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: WAS 6.1: There is no Action mapped for namespace / and action name j_security_check
Have you tried a 2.1.7 build? Mitchell, Steven wrote: I will look at that. Meanwhile, I found that WAS logged an error (this was after the WAS admin tried changing the filter from /* to /[my context]/* --Start of DE processing-- = [5/29/09 13:50:09:369 CDT] , key = javax.servlet.ServletException com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest() 309 Exception = javax.servlet.ServletException Source = com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest() probeid = 309 Stack Dump = javax.servlet.ServletException: Filter [struts2]: could not be initialized at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.init(FilterInstance Wrapper.java:156) at com.ibm.ws.webcontainer.filter.WebAppFilterManager._loadFilter(WebAppFil terManager.java:471) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter(WebAppFilt erManager.java:385) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterInstanceWrap per(WebAppFilterManager.java:244) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChain(WebApp FilterManager.java:302) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilter Manager.java:792) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilter Manager.java:679) at com.ibm.ws.webcontainer.servlet.FileServletWrapper.handleRequest(FileSer vletWrapper.java:416) at com.ibm.ws.wswebcontainer.servlet.StaticFileServletWrapper.handleRequest (StaticFileServletWrapper.java:93) at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleReques t(DefaultExtensionProcessor.java:714) at com.ibm.ws.wswebcontainer.extension.DefaultExtensionProcessor.handleRequ est(DefaultExtensionProcessor.java:113) at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3440) at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:815 ) at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1 461) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:1 18) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscriminatio n(HttpInboundLink.java:458) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformatio n(HttpInboundLink.java:387) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLi nk.java:267) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscr iminators(NewConnectionInitialReadCallback.java:214) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(Ne wConnectionInitialReadCallback.java:113) at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(Ai oReadCompletionListener.java:165) at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture. java:217) at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFu ture.java:161) at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136) at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195) at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java :743) at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473) Dump of callerThis = null Exception = javax.servlet.ServletException Source = com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest() probeid = 309 Dump of callerThis = null -Original Message- From: Ron Chan [mailto:rc...@i-tao.com] Sent: Tuesday, June 02, 2009 10:26 AM To: user@struts.apache.org Subject: Re: WAS 6.1: There is no Action mapped for namespace / and action name j_security_check Steven Not familiar with your setup and if it works in tomcat and not WAS, even stranger. But for what it's worth here is my hack, I made a copy of StrutsPrepareAndExecuteFilter and in the doFilter where it said ActionMapping mapping = prepare.findActionMapping(request, response); if (mapping == null) { boolean handled = execute.executeStaticResourceRequest(request, response); I added ActionMapping mapping = prepare.findActionMapping(request, response); if (mapping != null) { if (.equals(mapping.getName())) { mapping = null; } } if (mapping == null) { boolean handled = execute.executeStaticResourceRequest(request, response); not ideal, but fixed my prob HTH Ron - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: WAS 6.1: There is no Action mapped for namespace / and action name j_security_check
That is why I asked you if you are using Form-based authentication or Basic authentication. And I got no reply. However, looking at ur logs, esp the message: There is no Action mapped for namespace / and action name j_security_check Now I know that your are using Form-based authentication.Unfortunately, I have to say that Form-based authentication with struts 2.1.x does not work either on WAS V6.1/V7.0.0.x. I am currently working with Websphere support on this issue. I keep you posted [if interested] once I have a solution at hand.However, You can switch to Basicauthentication for the time being till a solution is available. To use Basic authentication, you need to set the following custom property for your server [ONLY WEBSPHERE V6.1, WAS 7 STILL HAS ISSUES and different solution] com.ibm.ws.webcontainer.assumefiltersuccessonsecurityerror true without this property, basic authentication fails on V6.1 as well. You also need to have this property set to be able to run struts 2.1.x on WASV6.1 [you do not need this for V7]: com.ibm.ws.webcontainer.invokefil=terscompatibility true __ Looking for the perfect gift? Give the gift of Flickr! http://www.flickr.com/gift/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org