axis2 插件安装中的问题

本文提供了一种解决在Eclipse中使用WSDL2Java工具时出现的“An error occurred while completing process-java.lang.reflect.InvocationTargetException”错误的方法。通过复制两个特定的.jar文件到指定路径并修改配置文件,可以有效解决此问题。

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

安装过后可以会出现

"An error occurred while completing process
-java.lang.reflect.InvocationTargetException"

 

 

 

while u trying to perform WSDL2Java operation.

This happens due to missing two .jar files.

 

My solution (eclipse3.3+jdk6+win32) :

1.Copy  " geronimo-stax-api_1.0_spec-1.0.1.jar " and

" backport-util-concurrent-3.1.jar " from %axis2_home%/lib folder to eclipse/plugins

/Axis2_Codegen_Wizard_1.3.0/lib folder.

2.Modify plugins.xml in the same folder, add some code as following:

<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>
      ... 
 </runtime>

For someone(eclipse 3.4 users?) this is enough to make the annoying 

exception disappeared. But if the generator still complains the same

problem, u might need to do several steps more :

 

delete Axis2_Codegen_Wizard_1.3.0 from eclipse -> restart eclipse

-> reinstall Axis2_Codegen_Wizard_1.3.0

-> restart eclipse again.

 

One thing i've experienced with eclipse is that it caches some of the

classes, plugin configurations. So eventhough u update the plugin or

overwrite the existing one it uses this cached information for some

reason.. stupid enough  -r-

 

 

或者 :将Axis2_Codegen_Wizard_1.3.0  改为Axis2_Codegen_Wizard_1.4.0

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值