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 Sebastian Redl <wa...@gmx.net> on 2004/09/01 20:54:15 UTC

Solution to common JWS usage problem

Hi list. This is my first mail. I subscribed because I needed help for a 
problem with the sample EchoHeaders.jws, but examining several 
unanswered requests of the same kind, I finally found what my problem 
was, and so I want to post my solution to the list in the hope that it 
helps others.

The problem is that on requesting anything from a jws, the result would 
be a Fault, sending a FileNotFoundException as error code.
The FileNotFoundException would point to 
<AxisRoot>/WEB-INF/jwsClasses/<jwsname>.java.
E.g.

<?xml version="1.0" encoding="UTF-8" ?>
- <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" <http://schemas.xmlsoap.org/soap/envelope/>
xmlns:xsd="http://www.w3.org/2001/XMLSchema" <http://www.w3.org/2001/XMLSchema>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <http://www.w3.org/2001/XMLSchema-instance>>
- <soapenv:Body>
- <soapenv:Fault>
  <faultcode>soapenv:Server.userException</faultcode>
  <faultstring>java.io.FileNotFoundException:
/opt/jakarta/tomcat/webapps/axis/WEB-INF/jwsClasses/EchoHeaders.java (No
such file or directory)</faultstring>
  <detail />
  </soapenv:Fault>
  </soapenv:Body>
  </soapenv:Envelope>


It seems that this is a problem of permissions. When I changed the 
permissions on the files so that Tomcat could create new files and 
directories, it worked. Try that.
I know that Andreas Bohnert and Larry posted this problem, I hope this 
helps you.

Sebastian Redl