Axis2 Codegen Wizard 1.3.0 InvocationTargetException错误解决

Axis2_Codegen_Wizard_1.3.0 和Axis2_Service_Archiver_1.3.0, 是当前能够找到的最新版本.

将二个插件解压成文件夹拷入Eclipse插件目录下后,正常启动.

使用Axis2_Codegen_Wizard时出现问题,点击finish时,出现Inva.lang.reflect.InvocationTargetException异常

解决方法:

axis2-1.4.1-war\axis2\WEB-INF\lib目录下,复制backport-util-concurrent-3.1.jar和geronimo-stax-api_1.0_spec-1.0.1.jar两个文件

Axis2_Codegen_Wizard_1.3.0\lib下,同时要编辑Axis2_Codegen_Wizard_1.3.0下的 plugin.xml,将这两个文件添加进去    <library name="lib/backport-util-concurrent-3.1.jar">
<export name="*"/>
</library>
<library name="lib/geronimo-stax-api_1.0_spec-1.0.1.jar">
<export name="*"/>
</library>

插件即可正常生成代码.

Hi,everybody!

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,xml,Web)