This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
Similar Threads
Java2WSDL in AXIS 1.4 shows shows java.lang.NoClassDefFoundError: org/apache/axis/wsdlgen/Java2WSDL
IntelliJ tool generating "NoClassDefFoundError :org/apach" when try to generate WSDL from java code
Exception in thread main
Java2WSDL command inside WebSphere how to use it!
Accessing web service