Eclipse下安装Axis2插件
http://archive.apache.org/dist/ws/axis2/tools/
下载axis2-eclipse-codegen-wizard.zip和axis2-eclipse-service-archiver-wizard.zip
2、解压插件
解压后得到两个文件夹:Axis2_Codegen_Wizard_1.3.0和Axis2_Service_Archiver_1.3.0,拷贝至eclipse\plugins
3、重新启动Eclipse,如在File->New->Other中有Axis2 Wizards,说明插件安装成功。
4、新建Axis2 Code Generator,选择wsdl文件可生成客户端代理类。
错误An error occurred while completing process-java.lang.reflect.InvocationTargetException解决:
1.从AXIS2的LIB库中复制"geronimo-stax-api_1.0_spec-1.0.1.jar"和"backport-util-concurrent-3.1.jar"文件到Axis2_Codegen_Wizard_1.3.0的lib目录中,同时修改Axis2_Codegen_Wizard_1.3.0下的plugin.xml文件,在<runtime>中添加
<library name="lib/geronimo-stax-api_1.0_spec-1.0.1.jar"> <export name="*"/></library> <library name="lib/backport-util-concurrent-3.1.jar"> <export name="*"/></library>