Forum Stats

  • 3,814,232 Users
  • 2,258,846 Discussions
  • 7,892,630 Comments

Discussions

java.policy file on AIX

843811
843811 Member Posts: 49,851
Hello,
I am working on an AIX box with ibm java 1.3 installed. I have an rmi application which attempts to access a local file. I ahve specified a java.policy file at run time. Surprisinlgy it gives me an accesscontrol exception whereas the same program with the same file works fine on an NT system with sun java 1.3.1 installed. Any clue please

the java.policy file is as follows

grant {
permission java.net.SocketPermission "*:1024-65535","connect,accept,listen,resol
ve";
permission java.net.SocketPermission"194.13.245.75:21","connect,accept";
permission java.io.FilePermission "${/}/usr/tibco/sm/-","write,read";
permission java.util.PropertyPermission "DEBUG", "read";
};


I am stuck here. any clue wil be great.

thanks
sm

Comments

  • 843811
    843811 Member Posts: 49,851
    Hello,
    I think it has something to do with the file notations. I am able to get it work if I give
    permission java.security.AllPermission;
    to the code.

    I am not sure of the effects of giving the �ll Permission"to code.
This discussion has been closed.