aspose 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 Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 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

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

Joined: Mar 22, 2005
Posts: 42954
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.
I agree. Here's the link:
subject: Web service Client with Axis2