Exceptions coming from Axis2 Webservice
I have made a webservice using Axis2 1.3 and the latest Axis2 1.4 and in both the cases I am running into some serious access denied exceptions.
Description:
I have made a simple webservice which has API’s capable of accepting and returning byte arrays. I am using gSoapClient in c++ which communicates by sending xml soap messages. Basically I have to give some security permissions to this web application. Even after giving those permissions it is still throwing an exception saying:
access: access denied (java.io.FilePermission C:\ \Java\workspace \.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\MyWebService\WEB-INF\services read)
this log has been created on Eclipse by specifying enabling the debug option in tomcat 4.1.
Sometimes it is also seen that it gives me the same exception for “\WEB-INF\scriptServices read”
I tried it without using Eclipse too. it gives me the same error. i have put Axis2 jars in my WEB-INF/lib folder. this problem gets solved when i give the Web Application AllPermissions from the policy file but i cant get why this loose permission is required.
The folder that is throwing a read exception does not exist in the Web Application. It also happens sometime that there is same exception of read error from a class file that does not exist in the WEB-INF/classes folder but it exists in a jar(axis2 jars) in the WEB-INF/lib folder. I dont why those classes are not loaded from the jars and tried to get loaded from the classes folder only.
Please help me as I am unable to figure out this error even after googling it.
Regards,
- Login or register to post comments
- Printer friendly version
- 230 reads










