这个404 xxx not found,是WAS6.1的一个bug。
解决方法是:
1,首先WAS6.1要升级到6.1.0.3或以上。
2,在WAS Console -> Application Servers -> <server> -> Web
Container Settings -> Web Container -> Custom Properties里,增加一个custom
property,名字为com.ibm.ws.webcontainer.invokefilterscompatibility,值为true。
详细的见:
http://www.nabble.com/-S2--Websphere-6.1-Showcase-application%2C-Response-already-committed-warning-in-logs-to9679630.html#a9831115
新做的一个项目基于struts2做为web框架,在tomcat5.5下运行良好,移植到websphere6.1下的时候,访问action返回404未找到文件异常。通过网络搜索,发现这个是websphere6.1的一个bug,首先需要把was61升级到较高的补丁版本,目前本人用的是6.1.0.25版本,然后在was的管理控制台增加一个定制属性。具体步骤:应用服务器-你的服务器名-web容器设置-web容器-定制属性,增加属性名称com.ibm.ws.webcontainer.invokefilterscompatibility,属性值true
1. WebSphere升级到6.1.0.5之后的所有struts2的程序都会发生Action找不到的情况,解决方法如下,服务器>应用程序服务
器>[选择所使用的服务器]>Web 容器设置>Web 容器>定制属性,增加名称为
“com.ibm.ws.webcontainer.invokefilterscompatibility”的定制属性,值为true。
2.
把struts2 的所有包升级到 2.1.7
3. 在web.xml中加上 <welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
分享到:
相关推荐
was相关资料: Websphere安装步骤 websphere安装后配置说明 Websphere实用手册 WebSphere+v6.1配置文档
websphere 6.1安装配置指南websphere 6.1安装配置指南websphere 6.1安装配置指南websphere 6.1安装配置指南websphere 6.1安装配置指南websphere 6.1安装配置指南
MyEclipse 配置 Websphere6.1
Websphere6.1 安装 配置 DataSource JDBC JNDI ORACLE
WebSphere6.1 linux windowns 安装部署手册
websphere6.1.0.0升级至6.1.0.17
WebSphere 6.1应用服务器安装部署手册
WebSphere 6.1 SSL配置文档
WebSpere集群配置\WebSphere6.1安装部署手册.doc
介绍Websphere6.1程序部署,安装,配置,程序包发布等。
WebSphere 6.1 db2 数据源
IBM WebSphere 6.1 ND 集群安装配置
LR8.1监控websphere6.1,讲述在LoadRunner中如何配置WebSphere6.1
WebSphere Application Server Network Deployment 6集群安装部署步骤.docxwebsphere6.1集群配置
1.MyEclipse6.0中Websphere6.1的配置; 2.Websphere6.1基本配置.
websphere6.1集群安装详解 windows
Websphere6.1集群安装和配置 Websphere6.1集群安装和配置 Websphere6.1集群安装和配置
AIX安装websphere6.1,很详细的,
比较全面和易懂的介绍了webshpere5.1上,部署应用和配置数据库联接等。很适合于初学者。
图解说明如何安装websphere6.1