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

来源:互联网 发布:厦门广电网络 电话 编辑:程序博客网 时间:2024/05/16 15:29

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 包

[解决方案]
- 关闭 Eclipse
- copy %AXIS2_HOME%/lib/backport-util-concurrent-3.1.jar 到下列 folder
%ECLIPSE_HOME%/plugins/Axis2_Codegen_Wizard_1.3.0/lib

- 注册此 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>

- 执行 Eclipse 即可

- 若问题仍存在, 尝试改变Eclipse 使用的 JRE, 换成 JAVA 6
- 使用 JRE 1.6 启动 Eclipse 后, 若仍有问题, 试着加入 -clean 参数启动 Eclipse, 清除 osig cache:
eclipse.exe -vm "c:/java/jre1.6.0_05/bin/java.exe" -clean -console -consoleLog -debug -vmargs -Xmx384M

- 关闭 Eclipse 后, 再以一般方式启动 Eclipse, 应可解决问题

[參考]
Error while using Axis2 Code Generator Plugin for Eclipse
http://www.nabble.com/Error-while-using-Axis2-Code-Generator-Plugin-for-Eclipse-td17147595.html
http://web-latte.blogspot.com/2008/05/axis2-eclipse-plugin-code-generator.html

from:http://blog.csdn.net/isnow_julia/archive/2008/07/17/2665806.aspx

原创粉丝点击