wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes EJB - Blazix server....problem with privileges Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB - Blazix server....problem with privileges" Watch "EJB - Blazix server....problem with privileges" New topic
Author

EJB - Blazix server....problem with privileges

Jaydeep Deshmukh
Ranch Hand

Joined: Sep 10, 2002
Posts: 31
Hi,
I have deployed an EJB StockQuotes on Blazix EJB Server. When I try to get lookup the bean using the following code.
System.setSecurityManager(new RMISecurityManager());
Properties props = System.getProperties();
props.put( "java.naming.factory.initial", "desisoft.ejb.client.JRMPFactory" );
props.put( "desisoft.ejb.nameServer1","jaydeep:2050" );
Context ctx = new InitialContext( props );
Object obj = ctx.lookup("StockQuotes");
I get the following exception...
Exception in thread "main" java.security.AccessControlException: access denied (
java.util.PropertyPermission * read,write)
at java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:270)
at java.security.AccessController.checkPermission(AccessController.java:
401)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
at java.lang.SecurityManager.checkPropertiesAccess(SecurityManager.java:
1259)
at java.lang.System.getProperties(System.java:500)
at HelloClient1.main(HelloClient1.java:11)
PLEASE HELP. THANKS IN ADVANCE....!!
 
jQuery in Action, 2nd edition
 
subject: EJB - Blazix server....problem with privileges