安装过后可以会出现
"An error occurred while completing process
-java.lang.reflect.InvocationTargetException"
while u trying to perform WSDL2Java operation.
This happens due to missing two .jar files.
My solution (eclipse3.3+jdk6+win32) :
1.Copy " geronimo-stax-api_1.0_spec-1.0.1.jar " and
" backport-util-concurrent-3.1.jar " from %axis2_home%/lib folder to eclipse/plugins
/Axis2_Codegen_Wizard_1.3.0/lib folder.
2.Modify plugins.xml in the same folder, add some code as following:
<runtime>
...
<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>
...
</runtime>
For someone(eclipse 3.4 users?) this is enough to make the annoying
exception disappeared. But if the generator still complains the same
problem, u might need to do several steps more :
delete Axis2_Codegen_Wizard_1.3.0 from eclipse -> restart eclipse
-> reinstall Axis2_Codegen_Wizard_1.3.0
-> restart eclipse again.
One thing i've experienced with eclipse is that it caches some of the
classes, plugin configurations. So eventhough u update the plugin or
overwrite the existing one it uses this cached information for some
reason.. stupid enough -r-
或者 :将Axis2_Codegen_Wizard_1.3.0 改为Axis2_Codegen_Wizard_1.4.0