java.lang.reflect.InvocationTargetException
关于这个错误我之前也遇到过,是因为apache担供的axis2的eclipse插件Axis2_Codegen_Wizard少包造成的,你打开 plugin.xml,看 <runtime>结点,首先看library指向的jar包是不是都存在,不存在的可以从axis2组件中找,里面有的,然后加上 backport-util-concurrent-3.1.jar和geronimo-stax-api_1.0_spec-1.0.1.jar这两上包(如果没有的话),最后 eclipe -clean就ok 了
1) Shutdown eclipse
2) Copying the "backport-util-concurrent-3.1.jar" from "$AXIS2_HOME/lib/" to "$ECLIPSE_HOME/plugins/Axis2_Codegen_Wizard_1.3.0/lib/"
3) Adding the following into the "runtime" element "$ECLIPSE_HOME/plugins/Axis2_Codegen_Wizard_1.3.0/plugin.xml" :
<library name="lib/backport-util-concurrent-3.1.jar">
<export name="*"/>
</library>
4) In "$ECLIPSE_HOME/plugins/Axis2_Codegen_Wizard_1.3.0/plugin.xml" changing the version attribute of the "plugin" element from "1.3.0" to "1.4.0". This results still in the same exception. But leave it.
5) Now changing the version also in the plugin's folder name from "Axis2_Codegen_Wizard_1.3.0" to "Axis2_Codegen_Wizard_1.4.0".
6) Start eclipse and try the plugin
--------------------------------------------------------------
1.在axis2的lib里找到backport-util-concurrent-3.1.jar,
2.将里面的edu目录解压缩出来,
3.用winrar打开eclipse\plugins\Axis2_Codegen_Wizard_1.3.0\lib\axis2-1.4.jar
4.把edu添加进去
重启eclipse.
有人说把backport-util-concurrent-3.1.jar拷到eclipse\plugins\Axis2_Codegen_Wizard_1.3.0\lib下,
再编辑plugin.xml添加
<library name="lib/backport-util-concurrent-3.1.jar">
<export name="*"/>
</library>
若问题仍存在, 尝试改变Eclipse 使用的 JRE, 换成 JAVA 6
- 使用 JRE 1.6 启动 Eclipse 后, 若仍有问题, 试着加入 -clean 参数启动 Eclipse, 清除 osig cache:
- (在 cmd运行模式下到eclipse安装目录下启动eclipse,使用下面带参数语句)
- eclipse.exe -vm " C:\Program Files\Java\jre1.6.0_01\bin\java.exe" -clean -console -consoleLog -debug -vmargs -Xmx384M
这是刚在网上找的一个解决方法,最终问题解决了!!!!!!!!!!!!!!1
解决方法是执行(在 cmd运行模式下到eclipse安装目录下启动eclipse,使用下面带参数语句)
- eclipse.exe -vm " C:\Program Files\Java\jre1.6.0_01\bin\java.exe" -clean -console -consoleLog -debug -vmargs -Xmx384M
我想此语句把ECLIPSE的一些历史信息给清除了,所以再加上前面的相关知识最终搞定。
PS。以上提供 的方法均是来源于网络,在此感谢各位原作者。
- 1
- 2
前往页