自WebSphere 6.1.0.5以后,WebSphere会先判断访问的URL是否匹配servlet Mapping或者文件匹配,如果没有匹配的会直接导致404错误,而不会再走定义的Mapped Filter,导致如果在Fileter 中对URL进行重新转发失败。
修改方式为:在控制台expand Servers -> Application Servers -> <server> -> Web Container Settings -> Web Container -> Custom Properties增加属性"com.ibm.ws.webcontainer.invokefilterscompatibility" 值为true
在Tuscany中发布的WS都是动态绑定的,所以此属性一定要设置.