You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by anitha chintamaneni <ac...@gmail.com> on 2008/10/22 23:13:09 UTC
Classpath errors when compiling SampleClient.java
I am new to axis2. I have deployed the HelloWorld service into the tomcat
server. Tomcat Version is 6.0. When compiling the SampleClient, i get
'cannot find symbol' errors and package not found errors. i have included
all the jar files as shown in the axis2 userguide.
http://ws.apache.org/axis/java/user-guide.html
I have set the classpath when compiling the SampleClient.java as said in the
below link.
http://ws.apache.org/axis/java/install.html#ClasspathSetup
Attached is the SampleClient.java, modified according to the deployed
service it is invoking. I Also attached the Call.java and Service.java files
downloded form the axis2 samples.
on my system axis2-1.4 is located at: *
C:\Users\chintamaneni\Desktop\axis2-1.4
*
The SampleClient, Call and Service java Files are located at: *
C:\Users\chintamaneni\Desktop\axis2-1.4\bin\src\org\apache\ws\axis2*
There are 59 jar files in the lib directory of axis2-1.4.
I had to download some of the other jars, because it was told in the
user-guide that classpath should have these jar
files-----axis.jar,commons-discovery-0.2.jar,jaxrpc.jar,saaj.jar,axis-schema.jar,axis-ant.jar,activation-1.1.jar
When i compiled the SampleClient.java, i got the following errors:
*C:\Users\chintamaneni\Desktop\axis2-1.4\bin\src\org\apache\ws\axis2>*javac
-cp
C:\Users\chintamaneni\Desktop\axis2-1.4\lib\axis.jar;C:\Users\chintamaneni\Desktop\axis2-1.4\lib\commons-discovery-0.2.jar;C:\Users\chintamaneni\Desktop\axis2-1.4\lib\commons-logging-1.1.1.jar;C:\Users\chintamaneni\Desktop\axis2-1.4\lib\jaxrpc.jar;C:\Users\chintamaneni\Desktop\axis2-1.4\lib\saaj.jar;C:\Users\chintamaneni\Desktop\axis2-1.4\lib\log4j-1.2.15.jar;C:\Users\chintamaneni\Desktop\axis2-1.4\lib\xml-apis-1.3.04.jar;C:\Users\chintamaneni\Desktop\axis2-1.4\lib\xercesImpl-2.8.1.jar
SampleClient.java
SampleClient.java:2: package org.apache.ws.axis2 does not exist
import org.apache.ws.axis2.Call;
^
SampleClient.java:3: package org.apache.ws.axis2 does not exist
import org.apache.ws.axis2.Service;
^
SampleClient.java:11: cannot find symbol
symbol : class Service
location: class SampleClient
Service service = new Service();
^
SampleClient.java:11: cannot find symbol
symbol : class Service
location: class SampleClient
Service service = new Service();
^
SampleClient.java:12: cannot find symbol
symbol : class Call
location: class SampleClient
Call call = (Call) service.createCall();
^
SampleClient.java:12: cannot find symbol
symbol : class Call
location: class SampleClient
Call call = (Call) service.createCall();
^
6 errors
These are the errors i get repeatedly after many modifications. I also tried
compiling the code with all the 59 jar files in the classpath. Even then i
got the same errors.Can u please identify the calsspath error.
Thanks in advance,
Anitha Chintamaneni