Hi Ranchers
I'm a newbie to
EJB... was trying EJB Tutorials...
In Session Bean Creation I'm getting the following runtime exception:
javax.naming.NamingException: Lookup failed: java.security.AccessControlExceptio
n: access denied (java.net.SocketPermission localhost:2050 resolve)
at desisoft.ejb.client.EjbClientContext.lookup(EjbClientContext.java:81)
at javax.naming.InitialContext.lookup(Unknown Source)
at SessionClientSample.main(SessionClientSample.java:42)
The client code goes like this:
line 38>
Properties env = new Properties();
line 39> env.put "java.naming.factory.initial", "desisoft.ejb.client.JRMPFactory" );
line 40>
env.put( "desisoft.ejb.nameServer1", "localhost:2050" );
line 41>
Context ctx = new InitialContext( env );
line 42>
StockQuotesHome home = (StockQuotesHome) PortableRemoteObject.narrow(
ctx.lookup( "StockQuotes" ), StockQuotesHome.class );
System.out.println(" passed here 3");
I'm using Blazix application server.
Has anybody faced similar problems? How to resolve this one? I'm sure this exception is something related to security policy. Could anybody please help provide some insight about setting security policy in JRE.
Thanks in advance
Ravi