关于Axis2 Eclipse plugin在eclipse中不能使用的问题
2009-01-12 16:20
555 查看
在开发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
4000
_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.
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
4000
_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.
相关文章推荐
- 关于eclipse中使用axis2-1.4工具wsdl2java(CodeGen的问题解决)
- 关于java编辑器eclipse工具以及jdk安装导致的javac不能使用问题
- 关于使用Eclipse导出jar文件时图片不能显示的问题
- 关于使用eclipse开发android程序不能运行的问题。
- 关于Plugin在Eclipse可以运行,单独发布时不能运行的问题
- eclipse content assist不能使用的问题
- 关于虚拟机使用NAT不能上网的若干问题
- 关于使用ISA代理导致一些网上银行出现不能正常打开的问题
- 关于Eclipse中DDMS 中EmulatorControl呈现灰色不能用的问题
- 关于使用android Eclipse按ctrl+鼠标左键或者F5出现source not found的问题如何解决
- 关于更改ip后dbconsole服务不能启动(em不能使用)问题的根本解决方法
- 关于虚拟机使用NAT不能上网的若干问题
- win7关于telnet不能使用问题
- 关于eclipse中adt插件不能启动的问题的解决办法
- ubutun 中 Eclipse中 快捷键 Alt + / 不能使用的问题
- 关于win10不能装jdk8的问题(使用不了javac)?
- Eclipse中编译和运行时使用的JDK和JRE级别问题(关于"Bad version number in .class file"的异常解决)
- 关于Mac系统升级到10.11.x之后cocoapods不能使用问题
- 关于使用ADT-22.6.0版本,Eclipse中无法创建AVD的问题
- Eclipse中syso 快捷键 Alt + / 不能使用的问题