File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Caused by: java.lang.RuntimeException: java.lang.NoClassDefFoundError: javax/xml/namespace/QName ?

 
Cloey Tan
Ranch Hand
Posts: 60
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While trying out with Axis2, i discovered that when i include this line of code
ServiceClient sender = new ServiceClient();
everything goes fine, until i invoke a method on my application which will then invoke that line of code, i get error message like this:
Caused by: java.lang.RuntimeException: java.lang.NoClassDefFoundError: javax/xml/namespace/QName

What does the QName have to do with the service client anywya? It happens too when i tried with Axis's Service.
 
Mourouganandame Arunachalam
Ranch Hand
Posts: 396
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

QName is in j2ee.jar, rt.jar and other couple of jar files. More @ QName.

Please check any one of the jar is in the classpath. Also check whether you are running with multiple java versions which conflicts each other as well.

 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic