This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler 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 Make it so: Java DB Connections & Transactions this week in the JDBC 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

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

ruchirak tiw

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.

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

Please suggest me solution to solve above issues.

Thanks in advance.


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.
It is sorta covered in the JavaRanch Style Guide.
subject: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis2/wsdl/Java2WSDL
It's not a secret anymore!