Cannot perform Bean lookup on signed Applet jar

Hi All,

I'm after developing an applet which runs from a number of jars on an Orion app server. Each one of these jars are signed and I can access the Applet okay. The problem is that I make remote reference to EJB's throughout the application. I cannot perform a Bean lookup on a signed jar. The only way it can be done is when the Client is granted all permissions. The client should pop up an option to grant permissions.

[439 byte] By [colinbarretta] at [2007-9-19]
# 1

If u are signing all the jar file along with the applet it should work

It does work fine with me. my code given below

note that i carry the following jar files along with my applet jar.

orion.jar,ejb.jar,,jta.jar,jnet.jar,jsse.jar,jcert.jar,parser.jar

and have them in my archive attribute of my html code for the applet

also all these jars are signed

hope this helps

regards

raees

public void init()

{

try

{

Hashtable env = new Hashtable();

env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");

env.put(Context.PROVIDER_URL, "ormi://solomon:23791/helloApp");

env.put("java.naming.security.principal", "admin");

env.put("java.naming.security.credentials", "secret");

Context ic = new InitialContext (env);

HelloHome hello_home = (HelloHome)ic.lookup("HelloBean");

Hello hello = hello_home.create ();

System.out.println (hello.helloWorld ());

}catch(Exception e)

{

e.printStackTrace();

}

}

raeeskadera at 2007-7-8 > top of java,Security,Other Security APIs, Tools, and Issues...