permaculture playing cards*
The moose likes Web Services and the fly likes Axis1.4: Jar file issue   with Webservice Client call Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis1.4: Jar file issue   with Webservice Client call" Watch "Axis1.4: Jar file issue   with Webservice Client call" New topic
Author

Axis1.4: Jar file issue with Webservice Client call

Anand Bhatt
Ranch Hand

Joined: May 30, 2007
Posts: 189
Hi,
I am using Axis1.4 and all the required jars:
"${lib.dir}/axis.jar ${lib.dir}/axis-ant.jar ${lib.dir}/commons-discovery-0.2.jar ${lib.dir}/commons-logging-1.0.4.jar ${lib.dir}/jaxrpc.jar ${lib.dir}/log4j-1.2.8.jar ${lib.dir}/saaj.jar ${lib.dir}/wsdl4j-1.5.1.jar "

are in my classpath. I have generated Websrvice Client and packaged the code as an executable in jar file. Now when I am running like: java -jar <XYZ.jar> I am getting below stact trace:

The jar file required for clas 'javax/xml/rpc/Service' is in my class path(jar file name: jaxrpc.jar). Any suggestion please.
Anand Bhatt
Ranch Hand

Joined: May 30, 2007
Posts: 189
Any one having any idea on this please?
Siitesh Hind
Ranch Hand

Joined: Sep 06, 2012
Posts: 51
Does your local jar have the required jaxrpc.jar?
How are you referring to the Service class while running the code?
Anand Bhatt
Ranch Hand

Joined: May 30, 2007
Posts: 189
Yes , jaxrpc.jar is in my lib folder which is in my classpath.
Siitesh Hind
Ranch Hand

Joined: Sep 06, 2012
Posts: 51
I believe you are getting a runtime exception while running the XYZ.jar which is what I meant.

Try with running the example with -classpath and state all the jars that you have referred
Anand Bhatt
Ranch Hand

Joined: May 30, 2007
Posts: 189
Thanks It resolved now. Included the required jar in runtime.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Axis1.4: Jar file issue with Webservice Client call
 
Similar Threads
Tomcat Error
Sealing Violation
weblogic 10 web service Standalone client issue
"Unknown constant tag 108" error !! What is it about ?
Help using htmlunit