MyEclipse下axis2插件的安装

本文介绍如何安装和配置 Axis Eclipse 插件,包括 AxisEclipse Codegen Wizard 和 Service Archiver Wizard,并解决了在使用过程中遇到的常见错误。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Axis Eclipse plug-in(代码生成工具和打包工具)下载:
http://archive.apache.org/dist/ws/axis2/tools/1_4/axis2-eclipse-codegen-wizard-1.4.zip
http://archive.apache.org/dist/ws/axis2/tools/1_4/axis2-eclipse-service-archiver-wizard-1.4.zip

将下载到的Axis 的两个plug-in解压缩到C:\Program Files\MyEclipse 6.5\eclipse\plugins目录下。

将Axis2_Codegen_Wizard改名为org.apache.axis2.tool.codegen.eclipse.plugin.CodegenWizardPlugin

将Axis_Service_Archiver-wizard.改名为
org.apache.axis2.tool.Axis_Service_Archiver_1.3.0

在D:\Program Files\MyEclipse 6.5\eclipse\links目录下新建文件名为:axis-eclipse-plugin.link
内容为:
path=D:\Program Files\MyEclipse 6.5\eclipse\plugins

重新启动myeclipse,在file->new->other中可看到Axis2 Wizards,axis2插件安装成功。

在使用codegen插件来从WSDL文件生成代码时,到了最后一步出现"An error occurred while completing process -java.lang.reflect.InvocationTargetException"
错误,重试N次,结果依然,

从AXIS2的LIB库中复制"geronimo-stax-api_1.0_spec-1.0.1.jar"和"backport-util-concurrent-3.1.jar"文件到Codegen的lib目录中,同时修改plugin.xml文件,添加  

 
<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> 

到plugin.xml文件中,保存后重新启动Eclipse即可!

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值