This week's book giveaway is in the Artificial Intelligence forum.
We're giving away four copies of Pragmatic AI and have Noah Gift on-line!
See this thread for details.
Win a copy of Pragmatic AI this week in the Artificial Intelligence forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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

 
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.
 
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
Boost this thread!