File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Exception in thread Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis2/wsdl/Java2WSDL" Watch "Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis2/wsdl/Java2WSDL" New topic
Author

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis2/wsdl/Java2WSDL

ruchirak tiw
Greenhorn

Joined: Jul 20, 2009
Posts: 2
Using Axis2 code generator to generate WSDL from java interface. Giving fully qualified class name and folder path where class file resides ,click on test class loading giving following exception.
java.lang.classNotFoundException.

When I am trying through command prompt then getting Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis2/wsdl
/Java2WSDL


Please suggest me solution to solve above issues.

Thanks in advance.

Regards
Ruchi



Travis Hein
Ranch Hand

Joined: Jun 06, 2006
Posts: 161
that file Java2WSDL missing class it is complaining about is found in the axis2-kernel jar file.

So its possible that jar fie is not found, such as I think running the command line java2wsdl command requires an environment variable AXIS2_HOME to be set
or possibly the file is corrupt, try downloading axis2 again ?

or for some reason that axis2-kernel jar file is not in your classpath.

Error: Keyboard not attached. Press F1 to continue.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis2/wsdl/Java2WSDL