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" ?>
- <soapenv:Body>
- <soapenv:Fault>
  <faultcode >soapenv:Server.userException</ faultcode>
  <faultstring >java.io.FileNotFoundException: C:\Tomcat 5.5\webapps\axis\Calculator.jws (Access is denied) </faultstring>
- <detail>
  <ns1:hostname xmlns:ns1="http://xml.apache.org/axis/ ">IBM-900DE7D8334</ ns1:hostname>
  </detail >
  </soapenv:Fault >
  </soapenv:Body >
  </soapenv:Envelope >

Reply via email to