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.