Axis2 java. Lang. Reflect. invocationtargetexception

Source: Internet
Author: User
When codegen1.3 plug-in is used to generate code from the WSDL, an error "An error occurred while completing process-java. Lang. Reflect. invocationtargetexception" occurs.
There are two common causes for this error: first, disable eclipse. Note that two errors may occur simultaneously.
1. The jar package is missing.
Copy the "geronimo-stax-api_1.0_spec-1.0.1.jar" and "backport-util-concurrent-3.1.jar" files from the axis2 lib Library to the lib directory of codegen, modify the plugin. xml file, add

<Library name = "Library/geronimo-stax-api_1.0_spec-1.0.1.jar">
<Export name = "*"/>
</Library>
<Library name = "Library/backport-util-concurrent-3.1.jar">
<Export name = "*"/>
</Library>
2. Version Problems
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 "& gt; check whether the axis2 version you downloaded is consistent with this configuration, like my axis2-1.5.1, You need to modify the above configuration to <plugin
Id = "axis2_codegen_wizard"
Name = "axis2 codegen wizard plug-in"
Version = "1.5.1" // corresponding version number
Provider-name = "Apache Software Foundation"
Class = "org. Apache. axis2.tool. codegen. Eclipse. plugin. codegenwizardplugin">

Then change the folder name axis2_codegen_wizard_1.3.0 to axis2_codegen_wizard_1.5.1.
After modifying the preceding two steps, restart eclipse.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.