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.
posted 6 years ago
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.