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 sh...@yahoo.com on 2003/12/10 17:14:15 UTC

Re: java.security.AccessControlException: access denied (java.io.FilePermission

How do I change it? I didn't write the file but it came with axis.jar.
 
Can you please help me out here.
 
TX,
S P
 
You need to change your security.policy file. So that it reflects io 
permission for your class

Dinesh Ganesh wrote:

> Hi,
> 
> I have written a class which extends org.apache.axis.client.Service. I 
> get the following error:
> 
> 
> 
> java.security.AccessControlException: access denied 
> (java.io.FilePermission client-config.wsdd read)
> at 
> java.security.AccessControlContext.checkPermission(AccessControlContext.java(Compile \
> d  Code))
> at 
> java.security.AccessController.checkPermission(AccessController.java(Compiled 
> Code))
> at 
> java.lang.SecurityManager.checkPermission(SecurityManager.java(Compiled 
> Code))
> at 
> com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager.java(Compil \
> ed  Code))
> at java.lang.SecurityManager.checkRead(SecurityManager.java(Compiled 
> Code))
> at java.io.File.canRead(File.java:519)
> at 
> org.apache.axis.configuration.FileProvider.check(FileProvider.java:152)
> at 
> org.apache.axis.configuration.FileProvider.<init>(FileProvider.java:120)
> at 
> org.apache.axis.configuration.DefaultEngineConfigurationFactory.getClientEngineConfi \
> g(DefaultEngineConfigurationFactory.java:131) at \
> org.apache.axis.client.Service.<init>(Service.java:112) at 
> com.tutorials.amazon.aws.AmazonSearchServiceLocator.<init>(AmazonSearchServiceLocato \
> r.java:10) at bookList.doGet(bookList.java:41)
> snip snip snip
> 
> I have not written the client-config.wsdd. It is using the one that 
> comes with axis.jar.
> 
> Any help will be greatly appreciated.
> 
> S P 
> 



Sharmila Pandith
AIM: spandith
Yahoo: spandith
MSN: spandith