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。以上提供 的方法均是来源于网络,在此感谢各位原作者。
myeclipse axis2 java.lang.reflect.InvocationTargetException问题解决
4星 · 超过85%的资源 需积分: 50 121 浏览量
2011-12-16
15:38:29
上传
评论
收藏 1KB RAR 举报
傲慢的小蜗牛
- 粉丝: 0
- 资源: 4
最新资源
- 基于matlab实现用有限元法计算电磁场的Matlab工具 .rar
- 基于matlab实现有限元算法 计算电磁场问题 边界条件包括第一类边界和第二类边界.rar
- 基于matlab实现用于计算不同车重下的电动汽车动力性和经济性.rar
- 基于matlab实现遗传算法求解多车场车辆路径问题 有多组算例可以用.rar
- 浏览器.apk
- 基于matlab实现是一个matlab中的power system 中搭建的一个模型
- 基于JSP毕业设计-教学管理系统(源代码+论文).zip
- 基于JSP毕业设计-家政管理系统-毕业设计.zip
- 基于Python实现淘宝商品评论采集(含逆向)源代码
- 基于matlab实现多目标进化算法NSGAⅡ&Matlab讲解.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈