java.security.AccessControlException: access denied (java.io.FilePermission
I have a signed applet. Its invoking a webservice using apache axis. I cannot do anything to the client's policy files. I am getting the following exception (I have the console turned on, so there are some extra messages):
Registered modality listener
Invoking JS method: document
Invoking JS method: URL
Referencing classloader: sun.plugin.ClassLoaderInfo@14e8cee, refcount=2
Loading applet ...
Initializing applet ...
Starting applet ...
Finding information ...
Releasing classloader: sun.plugin.ClassLoaderInfo@14e8cee, refcount=1
Done ...
java.security.AccessControlException: access denied (java.io.FilePermission client-config.wsdd read)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
at java.security.AccessController.checkPermission(AccessController.java:401)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
at java.lang.SecurityManager.checkRead(SecurityManager.java:863)
at java.io.File.canRead(File.java:636)
at org.apache.axis.configuration.FileProvider.check(FileProvider.java:147)
at org.apache.axis.configuration.FileProvider.<init>(FileProvider.java:115)
at org.apache.axis.configuration.EngineConfigurationFactoryDefault.getClientEngineConfig(EngineConfigurationFactoryDefault.java:144)
at org.apache.axis.client.Service.getEngineConfiguration(Service.java:801)
at org.apache.axis.client.Service.getAxisClient(Service.java:143)
at org.apache.axis.client.Service.<init>(Service.java:152)
at com.kalimbacorp.www.KeyGenServer.KeyManagerLocator.<init>(KeyManagerLocator.java:10)
at src.CryptoApplet.btnGenerateKeyActionPerformed(CryptoApplet.java:309)
at src.CryptoApplet.access$100(CryptoApplet.java:40)
at src.CryptoApplet$2.actionPerformed(CryptoApplet.java:154)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
I have this in my init method:
Policy.setPolicy(new Policy()
{
public PermissionCollection getPermissions(CodeSource codesource)
{
Permissions perms = new Permissions();
perms.add(new AllPermission());
return (perms);
}
public void refresh()
{
}
}
);
Thanks for any help
Ali

