Two Laptop Bag*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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....!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB - Blazix server....problem with privileges
 
Similar Threads
EJB client problem - Please help
EJB2.0 with JBOSS4.0
help jboss
I have deployed my ejb with Weblogic and I have a problem with my client
JNDI Lookup from Java Client not working