-
I’m trying to use R6 to invoke RMI to run code in a Java 5 VM. I’ve done this without RMI, by using RunTime.exec() and console scraping, and that works fine. But this system requires quite a bit more complexity than console scraping can readily accept.- I have the server running in Java 5, the objects bound to the RMI Registry, and it all works from Eclipse using a test client.
-
I had to past the object interface and implementation code directly into Script Libraries in Domino because (naturally) the 1.3.1 JVM can’t understand 1.5.x JARs. This may cause versioning issues, but I don’t get far enough to know.
-
Instead it says java.security.AccessControlException: access denied (java.io.FilePermisison /- read). This is baffling to me, because it shouldn’t be hitting that directory. The code is all local to the Domino application.
-
By “RMI classes directory”, I mean the directory that Eclipse uses when it compiles the code that registers the remote object with the RMI Registry. In this instance it’s /classes. The build.xml file packages this entire directory into a JAR that it instantiates classes from to register the object, and to run the stand-alone test client.
-
None-the-less, I’ve done the following:
-
Set the Agent security to “3” to allow all operations with admin rights.
-
Updated Domino’s java.policy file to grant the Domino directory and all it’s subdirectories full permissions:
grant codeBase “file://-” {
permission java.security.AllPermission;
};
-
Updated both Domino’s and Java 5’s java.policy files to allow read access to the RMI classes directory:
permission java.io.FilePermission “<fully qualified path to eclipse project classes directory/-”, “read”;
-
Step one gets around a different access violation. The other two steps have no effect, even after restarting the server between policy file updates. I’ve done all sorts of variations on the above, like changing slashes and using “*” instead of “-”. Nothing makes the slightest bit of difference, at least nothing I’ve done.
-
SO I have two questions:
-
What am I missing to get past this permission issue?
-
Am I wasting my time? I’m using Java 5 as the RMI server to overcome many, many limitations in R6’s 1.3.1 JVM. If R6 can’t accept an object from a Java 5 RMI server, then this is a wash, anyway, and I’m back to console scraping.
- Thanks for your time…