aspose file tools*
The moose likes Web Services and the fly likes Caused by: java.lang.RuntimeException: java.lang.NoClassDefFoundError: javax/xml/namespace/QName ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Caused by: java.lang.RuntimeException: java.lang.NoClassDefFoundError: javax/xml/namespace/QName ?" Watch "Caused by: java.lang.RuntimeException: java.lang.NoClassDefFoundError: javax/xml/namespace/QName ?" New topic
Author

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

Cloey Tan
Ranch Hand

Joined: Feb 03, 2009
Posts: 60
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

Joined: Oct 29, 2008
Posts: 396
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.


Mourougan
Open Source leads to Open Mind
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Caused by: java.lang.RuntimeException: java.lang.NoClassDefFoundError: javax/xml/namespace/QName ?
 
Similar Threads
no class def found error
Web service Client with Axis2
Unabel to hit the webservice usind DII approach
java.lang.VerifyError when parsing some XML. Any ideas what it means?
Axis Error java.lang.NoClassDefFoundError: org/apache/commons/discovery/tools/DiscoverSingleton