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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis2/wsdl/Java2WSDL
 
Similar Threads
Java2WSDL command inside WebSphere how to use it!
IntelliJ tool generating "NoClassDefFoundError :org/apach" when try to generate WSDL from java code
Accessing web service
Exception in thread main
Java2WSDL in AXIS 1.4 shows shows java.lang.NoClassDefFoundError: org/apache/axis/wsdlgen/Java2WSDL