an error occurred while completing process java.lang.reflect.InvocationTargetEx

在使用codegen插件来从WSDL文件生成代码时,到了最后一步出现"An error occurred while completing process -java.lang.reflect.InvocationTargetException"
错误,重试N次,结果依然,

从AXIS2的LIB库中复制"geronimo-stax-api_1.0_spec-1.0.1.jar"和"backport-util-concurrent-3.1.jar"文件到Codegen的lib目录中,同时修改plugin.xml文件,添加
<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>

到plugin.xml文件中,保存后重新启动Eclipse即可!

注意:复制"geronimo-stax-api_1.0_spec-1.0.1.jar"和"backport-util- concurrent-3.1.jar"文件,修改plugin.xml文件的过程需在将整个插件放入eclipse\plugins之前,也就是说先将需要的jar和修改的xml文件放入插件中,再将整个插件放入eclipse\plugins。
  直接把plugins目录下的axis2的包拷出来启动eclipse,关闭。
  再拷贝进去,启动,就可以做到重新加载。

原文地址:https://www.cnblogs.com/chinacloud/p/1771854.html