当前位置: 代码迷 >> Web前端 >> struts2的web布到websphere中的有关问题,以及解决办法
  详细解决方案

struts2的web布到websphere中的有关问题,以及解决办法

热度:136   发布时间:2012-11-07 09:56:10.0
struts2的web布到websphere中的问题,以及解决方法
springside3的应用可以发布到 websphere6.1.0.27上,不过有三点要注意

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>
  相关解决方案