struts2整合axis2后,访问不到wsdl,被struts2拦截的解决办法

来源:互联网 发布:2014大学生就业率数据 编辑:程序博客网 时间:2024/06/16 18:05

【转】:http://heisetoufa.iteye.com/blog/2195510

axis2的版本是 axis1.6.2


在struts2中整合axis2后,访问wsdl的时候显示404  not found
There is no Action mapped for action name xxxxxxxx.

解决办法:
在struts.xml配置文件中加入排除过滤的地址
<constant name="struts.action.excludePattern" value="/services.*"/>
value中的“.”符号是必须的,如过滤地址为  “/services/*”   value必须配置为 "/services.*"