File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Web service Client with Axis2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Web service Client with Axis2" Watch "Web service Client with Axis2" New topic
Author

Web service Client with Axis2

Cloey Tan
Ranch Hand

Joined: Feb 03, 2009
Posts: 60
I was wondering whether working with ejb3 and axis2 to write a web service client would need any extra configuration? As It gives me an runtime exception saying java.lang.RuntimeException: java.lang.NoClassDefFoundError: javax/xml/namespace/QName, with just an invoke of ServiceClient sender = new ServiceClient();

Any idea why this happens. Thanks in advance.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41073
    
  43
Do you have all the jar files that come with Axis in your classpath? At a quick glance, there are about 50 of them, one of which contains this class.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Web service Client with Axis2
 
Similar Threads
Caused by: java.lang.RuntimeException: java.lang.NoClassDefFoundError: javax/xml/namespace/QName ?
How to configure Axis2 client with generated stubs?
Asynchronous Web service call
Wierd issue with tomcat - ServiceClient invocation timing out after 15 seconds
Dynamically setting the username/password with Rampart.