Thursday, March 12, 2009

java.lang.reflect.InvocationTargetException at Axis2 Codegen Wizard

Problem: java.lang.reflect.InvocationTargetException

1. An exception is thrown:




2. Identify the errors by
2.1 workspace/.metadata/.log OR
2.2 turn the console log on if there is no file at the above path by running "eclipse -consoleLog"

3. in my case, one of many exceptions is:
Caused by: java.lang.ClassNotFoundException: edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap
...
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 60 more

4. Find the missing jars at Axis2_Codegen_Wizard_1.3.0\plugin.xml

5. Mines include:
backport-util-concurrent-3.1.jar
jibx-bind-1.1.5.jar
jibx-run-1.1.5.jar
neethi-2.0.4.jar

woden-1.0M8.jar can't be found anywhere, needs to download the interface and implementations separately and add them to the plugin.xml.

woden-api-1.0M8.jar
woden-impl-dom-1.0M8.jar
woden-impl-om-1.0M8.jar


6. run "eclipse -clean"

7. Voila!

1 comment:

  1. I did it according your structure , but it still not work . Have you had another way to solve this one? please help!!!

    ReplyDelete