java.lang.reflect.InvocationTargetException axis2 code generator error resolved

Axis2 Eclipse plugin: Code Generator 在Finish 时产生Exception: java.lang.reflect.InvocationTargetException
[版本]
Eclipse 3.2
Axis2 1.4

[问题原因]
主要的问题在于 Code Generator plugin 内缺少了 backport-util-concurrent-3.1.jar 包

[解决方案]
1.在网上下载一个backport-util-concurrent-3.1.jar 到%ECLIPSE_HOME%/plugins/Axis2_Codegen_Wizard_1.3.0/lib
PS:在最新的axis2-1.5-bin.zip里没发现这个包,只能在网上下了。。。

2.注册此 jar 包: 編輯 %ECLIPSE_HOME%/plugins/Axis2_Codegen_Wizard_1.3.0/plugin.xml , 在 <runtime> 內加入下面的字串
<library name="lib/backport-util-concurrent-3.1.jar">
<export name="*"/>
</library>

3.使用 JRE 1.6 启动 Eclipse 后, 若仍有问题, 试着加入 -clean 参数启动 Eclipse, 清除 osig cache

在windows命令行下执行:

eclipse.exe -vm "c:/java/jre1.6.0_05/bin/java.exe" -clean -console -consoleLog -debug -vmargs -Xmx384M

启动eclipse应该就可以了。

4.在package Explorer中刷新一下项目,然后你发现小红叉一个接一个的,这是因为没有axis2的类包。我们可以在下载的axis2-1.5-bin中找到lib包,把其中的jar都加入我们的工程中。然后重新编译一下工程就可以了

 

 

引自 http://hi.baidu.com/wuyunju/blog/item/9e81a7f828d3ee03d8f9fd15.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值