This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes How to resolve java.lang.reflect.Invocationexception during AXIS2 Code Gen Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to resolve java.lang.reflect.Invocationexception during AXIS2 Code Gen" Watch "How to resolve java.lang.reflect.Invocationexception during AXIS2 Code Gen" New topic
Author

How to resolve java.lang.reflect.Invocationexception during AXIS2 Code Gen

Prasanna Lakshmi Tallapaka
Greenhorn

Joined: Jun 28, 2010
Posts: 24
Hi,

Could any of you be so kind to help me knowing how to resolve the exception mentioned above. Using the WL 10.3.4 and AXIS2 Code Gen for generating the WSDL, having java code handy using Eclipse 3.5+.

Please let me know if you need any more info.

Here is my code :

A project in eclipse - > Dynamic Web Project

ClientWS.java

right clicking on this class, was trying to generate the WSDL. Selected Axis2 Code Generator ->Generate a WSDL from JavaSource File->Next->AddFolder.
Gave the fully Qualified name of the class : com.antrix.ClimateWS. Added the folder at bin where the class file exists. ->Test Class File Loading.... - Class file loaded Successfully->next->next->gave the File OutPut location->Finish

I see an error like :

Error Occured While Completing Process-java.lang.reflect.InvocationTargetException.

Many thanks for your help!

Warm Regards,
Prasann Lakshmi
Naren Chivukula
Ranch Hand

Joined: Feb 03, 2004
Posts: 576

Hi Prasanna,
Is you web service deployed? Can you see it working by invoking WSDL url on the server? Have you tried testing from SOAP UI?


Cheers,
Naren
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)
 
wood burning stoves
 
subject: How to resolve java.lang.reflect.Invocationexception during AXIS2 Code Gen
 
Similar Threads
webservice resources.
Invoke .NET Web Service using Java/Axis passing SoapHeader
How To :: Generating WSDL file from eclipse(java2wsdl & wsdl2java from eclipse)
Webservice client code generation using axis2 and eclipse galilio
Error while generating Web Services Client using wsdl in Eclipse 3.6