Apache CXF 部署在 WAS 7.0 问题解决

cxf架构下开发的WebService在Tomcat下可以正常运行,但是部署到WAS7.0上不能正常运行,并抛出如下异常:
00000035 webapp E com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet Error]-[CXFServlet]: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.jaxws.EndpointImpl---1922519269': Invocation of init method failed; nested exception is javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException

解决办法:

1.在修改Web模块中的MANIFEST.MF文件,添加如下属性禁用应用程序IBM的WebService功能
DisableIBMJAXWSEngine: true
!IMPORTANT! DO NOT include the following property: UseWSFEP61ScanPolicy: true

2.如果WEB-INF/lib目录下有如下jar包请删除
*geronimo-activation_1.1_spec-1.0.2.jar
* geronimo-stax-api_1.0_spec-1.0.1.jar
* jaxb-api-2.1.jar
* jaxb-impl-2.1.12.jar
* saaj-api-1.3.jar
* saaj-impl-1.3.2.jar
* serializer-2.7.1.jar
* xalan-2.7.1.jar

详细请参考:
http://d.avidmalone.com/archive/2010/February/10/Apache_CXF_on_WAS_7.0/
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值