Monday, January 12, 2009

InvocationTargetException with the Apache Axis2 Eclipse plugin

If you have to use Axis2, and work with Eclipse, it is worth to try this tool:

Code Generator Wizard Guide for Eclipse Plug-in

If you encounter the following problem:



then it means that not all the necessary jar files are available: either not packaged in the plugin download or they are missing from the plugin.xml.

Do the following (this particular solution worked for me, this or a similar one should also work for you):

1. Download the following jar files:

stax-api-1.0.1.jar
backport-util-concurrent-3.1.jar

and save them to eclipse/plugins/[Axis2 Codegen Wizard]/lib (replace [Axis2 Codegen Wizard] with the real plugin directory).

2. Add to the eclipse/plugins/[Axis2 Codegen Wizard]/plugin.xml the followings (to the <runtime> element), if they are missing:

<library name="lib/stax-api-1.0.1.jar">
<export name="*"/>
</library>


<library name="lib/backport-util-concurrent-3.1.jar">
<export name="*"/>
</library>


3. Restart Eclipse:

eclipse -clean

If you still have problems, then open eclipse/plugins/[Axis2 Codegen Wizard]/plugin.xml, and figure out which jar files are still missing. Use http://findjar.com/ for download locations of the missing files.

Links discussing the same problem:

Developing Web Services Using Apache Axis2 Eclipse Plugins

Blogs from Iterox - used this method to track down the problem


Tuesday, February 06, 2007

Wow, I am a top Google Gadget developer now...

I don't know why, but I am among the "top" Google gadget developers, at the moment of writing, my rank is 71 (out of 80). It was just that simple password generator (available form my web page...), that brought me the Title and Sentences:

"These talented individuals are leading the charge in making your Google homepage a better place, and we think they deserve a standing ovation!"

Should I be finally proud of myself? :)))

It's here.