jQuery in Action, 3rd edition
The moose likes Web Services and the fly likes doubt in webservices Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "doubt in webservices" Watch "doubt in webservices" New topic

doubt in webservices

kanthi kiran

Joined: Apr 04, 2008
Posts: 12
hi friends,

i have written a web service client and started executing it... but i am getting an exception.

Exception in thread "main" javax.xml.rpc.ServiceException: Failed to create factory: org.apache.axis.client.ServiceFactory
at javax.xml.rpc.ServiceFactory.newInstance(ServiceFactory.java:79)
at webservice1.Client.main(Client.java:13)
Caused by: java.lang.ClassNotFoundException: org.apache.axis.client.ServiceFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at javax.xml.rpc.ServiceFactory.newInstance(ServiceFactory.java:73)
... 1 more

actually i am executing this sample example in Eclipse europa with JBoss server....
iam not able to understand this exception. can anyone help me...........

thanks & regards,
Kanthi Kiran
pradeep jaladi
Ranch Hand

Joined: Nov 21, 2004
Posts: 65

I guess you missed one of the jar files in the class path. Check whether all the jar files which are in classpath

I agree. Here's the link: http://aspose.com/file-tools
subject: doubt in webservices
It's not a secret anymore!