关于Axis2 Eclipse plugin在eclipse中不能使用的问题
来源:互联网 发布:美国网络教育 本科 编辑:程序博客网 时间:2024/05/22 10:48
在开发axis2中,我在用到axis2的eclipse 插件是所遇到:Code Generator 在Finish 时产生Exception: java.lang.reflect.InvocationTargetException 这个问题,看到有很到像我一样的同胞遇到这个问题,查了很多资料终于在一篇英文文档中找出了解决方法 , 我的开发环境是 Myeclipse6.0 GA +axis1.4:
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.
(从你下载的axis2 开发环境中copy “backport-util-concurrent-3.1.jar”“geronimo-stax-api_1.0_spec-1.0.1.jar” 放到你下载的plugin解压后的Axis2_Codegen_Wizard_1.*.* 文件夹中。)
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>
(修改Axis2_Codegen_Wizard_1.*.* 文件夹中的plugin.xml添加以上内容 启动eclipse 即可)
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
另一个axis2 插件配置出现的错误
I tried all given hints. It still didnt work. I experimented a bit more and here is my solution:
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
In my case it worked then. Hope i could help you.
- 关于Axis2 Eclipse plugin在eclipse中不能使用的问题
- 关于在Eclipse中安装Axis2插件的问题
- 关于Plugin在Eclipse可以运行,单独发布时不能运行的问题
- Axis2 Eclipse plugin在eclipse使用时出现:Exception: java.lang.reflect.InvocationTargetException
- 在Eclipse中使用FindBugs plugin.
- ECLIPSE中使用AXIS2的几个问题
- 关于在Eclipse中使用命令行的问题
- 关于Axis2 的code generator插件在Eclipse出错的问题
- 关于在Eclipse中Tomcat不能启动的问题(附MyEclipse6&MyEclipse5.5破解)
- Eclipse Vrapper plugin, 可在eclipse使用vim的功能
- 关于使用eclipse开发android程序不能运行的问题。
- 在Eclipse中使用Axis2插件自动生成WSDL文件
- 在Eclipse中使用Axis2插件自动生成WSDL文件
- 在Eclipse中使用Axis2插件自动生成WSDL文件
- Eclipse中syso 快捷键 Alt + / 不能使用的问题
- Eclipse中syso 快捷键 Alt + / 不能使用的问题
- Eclipse中syso 快捷键 Alt + / 不能使用的问题
- 解决Eclipse中Axis2 WS的InvocationTargetException问题
- vs7.1工程文件到Programmer's Notepad编辑器工程的转换
- 冬天按摩这5地方 强过吃补品
- 自定义事件
- VC6 轻松实现 xp 样式控件
- Sybase脚本修改为oracle脚本备忘
- 关于Axis2 Eclipse plugin在eclipse中不能使用的问题
- 浏览器高宽的一致性
- 使用三色笔按照思维导图的方式记笔记
- Flex Data Services 2 Java Reference(Public API)
- 为网站设置自定义404错误页面
- .net几个常用数据控件的区分
- 实现程序互斥运行的几种方法
- uclinux-2008R1.5-RC3(bf561)到VDSP5的移植(6):CONFIG_BFIN_KERNEL_CLOCK
- 无线互联网时代的中国移动(转)