MyEclipse6.5 下Axis2插件的下载和安装

本文详细介绍了在使用Axis2插件从WSDL文件生成代码时遇到的An error occurred while completing process-java.lang.reflect.InvocationTargetException错误的解决方法,包括将特定依赖库复制到插件lib目录并修改plugin.xml文件,以及删除并重新启动Eclipse环境的步骤。

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

Axis Eclipse plug-in(代码生成工具和打包工具)下载:
http://apache.justdn.org/ws/axis2/tools/1_4_1/axis2-eclipse-codegen-wizard.zip
http://apache.justdn.org/ws/axis2/tools/1_4_1/axis2-eclipse-service-archiver-wizard.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

 

再把这两个文件夹放到eclipse的插件目录下

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

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

 

其解决方法如下:

step 1从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文件中,保存。

step 2 $workspace位置\.metadata\.plugins下目录 Axis2_Codegen_Wizard 删除

step 3在命令行下切换至$ECLIPSE_HOME目录,然后执行:eclipse –clear

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值