axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tom mccarthy <>
Subject vexing path issues
Date Wed, 10 May 2006 03:14:15 GMT
I am a very new user to axis. My installation of axis seems to have gone 
well. Am able to deploy web services and see that they are there. Things 
seem to compile well. I get no huge errors associated with mandatory 
things on the happyaxis page.

My issue is related to the fact that whenever I try to call a web 
service from the command line I get:
Exception in thread "main" java.lang.NoClassDefFoundError: 
What I am specifically trying to run is example2 from the axis user's 
guide. I can deploy it (copy it to the axis directory),  and I can see 
it is there (at localhost:8080/axis/Calculator.jws) and see the WSDL 
file associated with it. Sadly, when I type in
java samples.userguide.example2.CalcClient -p8080 add 2 5
I get the error I mentioned earlier.

I can also deploy as per example3 from the users guide using
java -cp $AXISCLASSPATH org.apache.axis.client.AdminClient deploy.wsdd
however, when I try to run it using
java samples.userguide.example3.Client 
-lhttp://localhost:8080/axis/services/MyService "test me"
I get the error I mentioned above.
Also interesting is that I have to use -cp $AXISCLASSPATH while I have 
added $AXISCLASSPATH to my path.

Because I am of the belief that this is all associated with a classpath 
error somehow I will show you what I have done with my path for axis:
export AXIS_HOME="/usr/share/tomcat/webapps/axis"

These things, so far as I know, point to the right places. I would 
appreciate any help that can be given me in sorting out these issues.

View raw message