axis2下载:http://axis.apache.org/axis2/java/core/download.cgi
最新的是1.6.2. 将下载的war包直接部署websphere7时,会报错。
官方文档:http://axis.apache.org/axis2/java/core/docs/app_server.html
对在websphere下部署1.6.2给了详细的方案。但依然部署失败。报错为module available。
axis2官方给的部署方案:
1.Before deploying the Axis2 WAR, edit the axis2.xml file and set the EnableChildFirstClassLoading parameter to true.
Please note that this parameter is only supported in Axis2 1.5.5 or higher. The parameter is already present in the default axis2.xml
file included in the WAR distribution, but its value is set to false. Therefore it is enough to change the parameter value.
2.After deployment, modify the application configuration to enable parent last class loading for the Web module: in the WebSphere admin console, go the the configuration page for the enterprise application, click on Manage Modules and locate the WAR containing Axis2 (in the default WAR distribution,
the module is called Apache-Axis2), then change the Class loader order option to Classes
loaded with local class loader first (parent last). Note that the class loader policy for the enterprise application itself (which can be specified under Class loading and update detection) is irrelevant, unless a custom EAR distribution is used that includes the Axis2 libraries in the EAR instead of the WAR.
无奈之下查websphere的文档。。
IBM针对websphere7下axis2和cxf的部署安装有专门的文档和示范例子供下载:
http://www.ibm.com/developerworks/websphere/library/techarticles/1001_thaker/1001_thaker.html
文档是09年写的,里面的axis2是1.5版的。
可惜,按照1.5版的方法部署1.62还是失败,报异常:
servlet AxisAdminServlet 创建了未捕获到的 init() 异常:
javax.servlet.ServletException: javax.servlet.ServletException:
org.apache.axis2.AxisFault: The system is attempting to engage a module that is not available: addressing
最后,无奈还是选了axis2 1.5版的,按照示例,部署服务成功。
IBM文档里面有详细的图示,就不上图了。
简而言之,三个步骤:
1.应用的 class loader顺序配置变为本地包优先。
2.war包里面META-INF里面的MANIFEST.MF加上:DisableIBMJAXWSEngine:true
3.如果标准的axis1.5部署还是失败,将IBM示例的axis1.5 lib下所有jar包覆盖标准包,标准lib中可能少jar包导致。
以上三步做完,重新启动websphere服务器。
CXF按照IBM示范文档部署正常,不多说了。
分享到:
相关推荐
在websphere8.5 下部署含有CXFwebservice的war包无法正常启动,而相应的war包在tomcat上是可以正常启动的,通过后台的日志分析大致可以定位为相关的cxf类无法找到,其实这些类在项目的lib目录下都是存在的,莫名其妙...
CXF是一个很好用的web service框架,但是部署在WebSphere上容易出现问题,这是收集到的解决这些问题的方法。
NULL 博文链接:https://wxu.iteye.com/blog/268981
关于 WebSphere 的应用部署关于 WebSphere 的应用部署
WebSphere6.1 linux windowns 安装部署手册
介绍Websphere6.1程序部署,安装,配置,程序包发布等。
WAS_ND_V8.5_2_OF_3.zip WAS_ND_V8.5_3_OF_3.zip 2、安装Installation Manager 解压软件包 2.1 unzip agent.installer.linux.gtk.x86_64_1.6.0.zip 2.2 执行安装程序 ./install 2.3 Installation Manager安装界面中...
Win7(64位)下安装_部署WebSphere7.0.pdf
Linux下WebSphere安装及部署,此文档是linux redhat6.4 websphere8.5.5安装及部署文档
websphere java 部署websphere java 部署
部署cxf服务到WebSphere7.0的步骤
websphere本地部署手顺websphere本地部署手顺
文档描述了集群环境下部署应用程序、数据源及web服务器APache 安装 WAS插件安装及配置
系统WebSphere部署手册
Websphere部署发布步骤