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