-
1. Re: RMISecurityManager
cobraflow Apr 14, 2003 8:46 AM (in response to vtecinc)You need to run with a security manager...
Add
-Djava.security.manager=java.rmi.RMISecurityManager
-Djava.security.policy=/dir to policy file/java.policy
to your application's command line
The policy file should contain the required permissions for your application.
Regards
Lewis -
2. Re: RMISecurityManager
vtecinc Apr 14, 2003 2:30 PM (in response to vtecinc)I appreciate the reply but don't know how to do this for a web application - this isn't a stand alone client with a command line. I've tried opening up the java.policy file and server.policy security to give all permissions but this seems to make no difference. Any further insights or info would be appreciated.
Doug -
3. Re: RMISecurityManager
tlamarca Apr 16, 2003 12:21 PM (in response to vtecinc)I don't know how clean this is, but if you need to add system properites like that at startup time you can do that for your web apps in jboss/bin/run.sh . You could also at run time call System.setProperty() (for setting the policy) and System.setSecurityManager() (for setting RMISecurityManager) in some startup block. If you are using JBoss 3, look for "# Setup JBoss sepecific properties" in run.sh and you will see where you can add system properties like the examples in the previous post.