Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • 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
  • 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: 398
Android Eclipse IDE Ubuntu
  • 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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic