I devloppe an application with Turbine wich calls method by RMI.

So, i write this method to connect to the server 10.224.74.200 to
dowload the Stub.

----------------------------------------------------------------------------------

private void rmiConf(){

    try{
      System.out.println("NotificationRedirection : RMI Registry en
construction");
      Registry registry;
      registry = LocateRegistry.getRegistry(1099);
      System.out.println("NotificationRedirection : RMI Registry
lance");

      System.setProperty("java.security.policy", "allaccess.policy");
      System.setProperty("java.rmi.server.codebase",
"http://10.224.74.220/-");

      System.setSecurityManager(new RMISecurityManager());

      System.out.println("NotificationRedirection : Connexion au GATEWAY
via RMI");
      gateway =
(InterfaceGateway)Naming.lookup("rmi://10.224.74.200/gateway");
      System.out.println("NotificationRedirection : Connexion au GATEWAY
effectuee");
    }
    catch(Exception e){
      System.out.println(e);
      System.exit(1);
    }
  }

-----------------------------------------------------------------------------------------------

But I get the following exception when I start my application with the
browser Internet Explorer

NotificationRedirection : RMI Registry en construction

NotificationRedirection : RMI Registry lance

NotificationRedirection : Connexion au GATEWAY via RMI

java.security.AccessControlException: access denied
(java.io.FilePermission                                                     
d:\FireFramework\Fire\Turbine\src\templates read)

        at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:195)

        at
java.security.AccessController.checkPermission(AccessController.java:403)

        at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)

        at java.lang.SecurityManager.checkRead(SecurityManager.java:873)

        at java.io.File.exists(File.java, Compiled Code)

        at
freemarker.template.FileTemplateCache.checkCacheDir(FileTemplateCache.java:299)

        at freemarker.template.FileTemplateCache.update(FileTemplateCache.java,
Compiled Code)

        at freemarker.template.UpdateTimer.run(UpdateTimer.java, Compiled Code)

        at java.lang.Thread.run(Thread.java:479)

java.security.AccessControlException: access denied
(java.net.SocketPermission 10.224.74.200:1099 connect,resolve)





So where must I place the allaccess.policy file in my environnement (I
work with JBUILDER) ???
Must I specify the path of this file in a Turbine's file ???


Thanks





-- 
Christian Wolf
1545 Chevroux
T�l : +41266672139
e-mail : [EMAIL PROTECTED]


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to