axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Developer Developer <devquesti...@gmail.com>
Subject Having trouble with AXIS and Tomcat
Date Sat, 01 Oct 2005 18:32:20 GMT
Hello,
 I am new to Web services development. I installed Tomcat, AXIS JAX and all
other prereqs, and I think my installations were correct.
 I am trying my first web service deployment
Here is the sample.
 I created a file called Calculator.jws in C:\Tomcat 5.5\webapps\axis

public class Calculator {
public int add(int i1, int i2) {
return i1 + i2;
}

public int subtract(int i1, int i2) {
return i1 - i2;
}
}

When I try to access it using
http://localhost:8080/axis/Calculator.jws?method=add

 I get the following error

    <?xml version="1.0" encoding="UTF-8" ?>
 - <http://localhost:8080/axis/Calculator.jws?method=add#>
<soapenv:Envelopexmlns:soapenv
="*http://schemas.xmlsoap.org/soap/envelope/*" xmlns:xsd="*
http://www.w3.org/2001/XMLSchema*" xmlns:xsi="*
http://www.w3.org/2001/XMLSchema-instance*">
 - <http://localhost:8080/axis/Calculator.jws?method=add#> <soapenv:Body>
 - <http://localhost:8080/axis/Calculator.jws?method=add#> <soapenv:Fault>
  <faultcode>*soapenv:Server.userException*</faultcode>
  <faultstring>*java.io.FileNotFoundException: C:\Tomcat
5.5\webapps\axis\Calculator.jws (Access is denied)*</faultstring>
 - <http://localhost:8080/axis/Calculator.jws?method=add#> <detail>
  <ns1:hostname xmlns:ns1="*http://xml.apache.org/axis/*">*IBM-900DE7D8334*
</ns1:hostname>
 </detail>
 </soapenv:Fault>
 </soapenv:Body>
 </soapenv:Envelope>

Mime
View raw message