日期:2014-05-17  浏览次数:20721 次

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/
我的异常网推荐解决方案:org.springframework.beans.factory.BeanCreationException:,http://www.aiyiweb.com/j2ee/10759.html