Apologies if this is a repost - I sent from the wrong address and
think it may have been dropped.
Folks, I've been battling with this for quite some time, and despite
finding similar stories on this mailing list and else where, still
don't have a solution for it. I hope someone can provide a simple
solution, because the problem itself doesn't seem that involved.
Tried axis-1_2_1 and axis-1_3 with the same results. Dev system is
Mac OS X 10.4.2, using the command line (but the same problem appears
in XCode.
I'm simply doing the following:
% javac -cp lib/axis.jar:lib/jaxrpc.jar:lib/saaj.jar:lib/commons-
discovery-0.2.jar:lib/commons-logging-1.0.4.jar:lib/
wsdl4j-1.5.1.jar:. samples/userguide/example1/TestClient.java
Which succeeds without a problem. I then try to execute the resulting
class:
% java -cp lib/axis.jar:lib/jaxrpc.jar:lib/saaj.jar:lib/commons-
discovery-0.2.jar:lib/commons-logging-1.0.4.jar:lib/
wsdl4j-1.5.1.jar:. samples.userguide.example1.TestClient
and get this error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/
axis/client/Service
at samples.userguide.example1.TestClient.main
(TestClient.java:31)
In the src distributions, Service is definitely there, but regardless
of version, -cp arguments, bin or src distribution, I can't get any
further. Why can Java find the Service class at compile time but not
at run time?
Heath