users@jax-rpc.java.net

Re: JAX_RPC - Runtime errors

From: Matthew Laurenson <matthewl_at_NARO.AFFRC.GO.JP>
Date: Mon, 21 Apr 2003 15:45:26 +0900

Atif

> I am getting the following runtime
> errors .... does any body = know where the problem could be.

> Exception in thread "main" java.lang.NoClassDefFoundError: =
> javax.activation.Data Handler

I think you might be missing one or more jar files from your classpath.
Here are the command lines I used with jwsdp 1.0_1 to run my jaxrpc
client (metsoap-client.jar contains my own classes and
net.agmodel.metsoap.MetSoapRemoteClient is the client class). Note that
jre1.4 contains some or all of the classes in
sax.jar;dom.jar;jaxp-api.jar so they are not required in the 1.4
version:

-----Java 1.4 version:
java -classpath
metsoap-client.jar;mail.jar;saaj-api.jar;saaj-ri.jar;activation.jar;jaxr
pc-api.jar;jaxrpc-ri.jar net.agmodel.metsoap.MetSoapRemoteClient
http://g6450.narc.affrc.go.jp:8080/jaxrpc-metsoap/MetSOAP

-----Java 1.3 version:
java -classpath
metsoap-client.jar;sax.jar;dom.jar;jaxp-api.jar;mail.jar;saaj-api.jar;sa
aj-ri.jar;activation.jar;jaxrpc-api.jar;jaxrpc-ri.jar
net.agmodel.metsoap.MetSoapRemoteClient
http://g6450.narc.affrc.go.jp:8080/jaxrpc-metsoap/MetSOAP

Regards
Matthew Laurenson
Dept. of Information Science and Technology
National Agriculture Research Center
Kannondai 3-1-1
Tsukuba
Ibaraki 305-8666
Japan

ph +81-29-8388974
fax +81-29-8388551
e-mail matthewl_at_naro.affrc.go.jp
web page http://cse.narc.affrc.go.jp/matthewl/
(Choose a quote from http://www.smc.qld.edu.au/quotes.htm)