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


------------------------------------------------------------------------------
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

Reply via email to