Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
ruchirak tiw
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic