Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Axis1.4: Jar file issue with Webservice Client call

 
Anand Bhatt
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any one having any idea on this please?
 
Siitesh Hind
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes , jaxrpc.jar is in my lib folder which is in my classpath.
 
Siitesh Hind
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks It resolved now. Included the required jar in runtime.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic