• Post Reply Bookmark Topic Watch Topic
  • New Topic

client runtime jars  RSS feed

 
Dan Walin
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After attending class, I'm working on a sample web service. I deployed the web service on our Websphere 6 server and from RAD 6, I'm able to run the client (java app) and get the results I expect from the service. Now I want to export the client code from my development environment and run it somewhere else. My instructions from class say that if the client is not running under Websphere (it's not) I need the IBM Web Services Runtime. I'm assuming these are jar files. When I try to run the client outside of the development environment, I get NoClassDefFoundError javax/xml/rpc/Service, so that sounds consistant, that I need some jar files. Can someone tell me what jar files are needed or where to look to figure that out? Thanks for any help.
 
Watsh Rajneesh
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
javax.xml.rpc package is JAX-RPC api. look for a jar with "jaxrpc" in the name.
 
Chintan Rajyaguru
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To add to what Watsh said, based on the error you listed, you need, JAX-RPC related jar files. This is similar to needing servlet.jar to run a servlet application. To make the whole thing easier, look at the client project that is running within WebSphere. Identify the WebSphere runtime environment variable and lookup the jar files under it. Add all those jar files in classpath of your non-websphere client and you should be fine.

C
 
Dan Walin
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just to post the outcome of this. . .
To make things simpler for myself, I changed my approach. The Web Service client now runs as a servlet which runs under Websphere. No need for for me to worry about what jar files, etc are needed. For my purposes, this actually works best.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!