I get "com.sun.rmi.rmid.ExecOptionPermission" when I try to use ActivationGroupID constructor with a policy file as property. I've read that I need to set a specific rmid policy file but my tries failed. What could be wrong here?

RaRa Rasputin

Create a wrapper script like this:

grant {
save that as policy.rmid, and run rmid as
rmid -J-Djava.security.policy=policy.rmid
then say you get an error; just add in the error in question between the existing lines, like:

permission com.sun.rmi.rmid.ExecOptionPermission "/lib/mahalo.jar";

then run rmid -stop, and restart it. Rinse. Lather. Repeat.