axis2 1.6.1 codegen java.lang.reflect.InvocationTargetException
2011-09-29 09:38
507 查看
http://loshamo.javaeye.com/blog/627020
在使用codegen1.3插件来从WSDL生成代码,到了最后一步竟然出然了"An error occurred while completing process-java.lang.reflect.InvocationTargetException"的错误
产生这种错误的原因一般有2种:首先关闭eclipse。
1.jar包缺失
从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>
2.版本问题
F:\Program Files\MyEclipse 6.0\eclipse\plugins\Axis2_Codegen_Wizard_1.3.0\plugin.xml中
<plugin
id="Axis2_Codegen_Wizard"
name="Axis2 Codegen Wizard Plug-in"
version="1.3.0"
provider-name="Apache Software Foundation"
class="org.apache.axis2.tool.codegen.eclipse.plugin.CodegenWizardPlugin">看看自己下载的axis2版本是否和这个配置一致,像我的是axis2-1.5.1则需修改上面的配置为<plugin
id="Axis2_Codegen_Wizard"
name="Axis2 Codegen Wizard Plug-in"
version="1.5.1" //对应的版本号
provider-name="Apache Software Foundation"
class="org.apache.axis2.tool.codegen.eclipse.plugin.CodegenWizardPlugin">
然后再将文件夹的名字Axis2_Codegen_Wizard_1.3.0改为Axis2_Codegen_Wizard_1.5.1
修改完以上2步重新启动eclipse即可。
在使用codegen1.3插件来从WSDL生成代码,到了最后一步竟然出然了"An error occurred while completing process-java.lang.reflect.InvocationTargetException"的错误
产生这种错误的原因一般有2种:首先关闭eclipse。
1.jar包缺失
从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>
2.版本问题
F:\Program Files\MyEclipse 6.0\eclipse\plugins\Axis2_Codegen_Wizard_1.3.0\plugin.xml中
<plugin
id="Axis2_Codegen_Wizard"
name="Axis2 Codegen Wizard Plug-in"
version="1.3.0"
provider-name="Apache Software Foundation"
class="org.apache.axis2.tool.codegen.eclipse.plugin.CodegenWizardPlugin">看看自己下载的axis2版本是否和这个配置一致,像我的是axis2-1.5.1则需修改上面的配置为<plugin
id="Axis2_Codegen_Wizard"
name="Axis2 Codegen Wizard Plug-in"
version="1.5.1" //对应的版本号
provider-name="Apache Software Foundation"
class="org.apache.axis2.tool.codegen.eclipse.plugin.CodegenWizardPlugin">
然后再将文件夹的名字Axis2_Codegen_Wizard_1.3.0改为Axis2_Codegen_Wizard_1.5.1
修改完以上2步重新启动eclipse即可。
相关文章推荐
- axis2 1.6.1 codegen java.lang.reflect.InvocationTargetException
- Axis2 Eclipse plugin在eclipse使用时出现:Exception: java.lang.reflect.InvocationTargetException
- axis2 java.lang.reflect.InvocationTargetException
- Axis2 Plugin Exception: -java.lang.reflect.InvocationTargetException
- Axis2 Plugin Exception: -java.lang.reflect.InvocationTargetException
- Eclipse使用axis2生成客户端调用时最后一步出现an error occurred while completing process -java.lang.reflect.InvocationTargetException
- 用axis2插件生成代码时出现java.lang.reflect.InvocationTargetException异常的处理
- Axis2 错误:An error occurred while completing process -java.lang.reflect.InvocationTargetException
- Axis2 错误:An error occurred while completing process -java.lang.reflect.InvocationTargetException
- Axis2 错误:An error occurred while completing process -java.lang.reflect.InvocationTargetException
- mavne install 报错org.apache.maven.surefire.util.SurefireReflectionException: java.lang.reflect.InvocationTargetException
- ] java.lang.reflect.InvocationTargetException
- 接入X5内核后出现32位无法在64位机器运行的问题(java.lang.reflect.InvocationTargetException; cause: java.lang.Unsatisfied)
- net.sf.json.JSONException: java.lang.reflect.InvocationTargetException
- java.lang.reflect.InvocationTargetException
- Caused by :java.lang.reflect.InvocationTargetException和Binary XML file line #**错误记录
- com.googlecode.jsonplugin.JSONException: java.lang.reflect.InvocationTargetException解决方法
- struts 2.2.1做例子时报异常:java.lang.RuntimeException: java.lang.reflect.InvocationTargetException 解决
- java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
- json数据转换异常:net.sf.json.JSONException: java.lang.reflect.InvocationTargetException