0 Replies Latest reply on Nov 21, 2002 12:31 PM by Donatas

    org.jboss.security.SecurityAssociation.getPrincipalInfo ==>>

    Donatas Newbie

      Properties p = new Properties();
      p.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
      p.put("java.naming.provider.url", "192.168.1.40:1099");
      Context context = new InitialContext(p);
      Object ref = context.lookup("beansai");
      beansaiHome home = (beansaiHome)PortableRemoteObject.narrow(ref, beansaiHome.class);
      remote = home.create();


      client tries to execute this code and gets exception: java.security.AccessControlException: access denied (java.lang.RuntimePermission org.jboss.security.SecurityAssociation.getPrincipalInfo)

      i signed applet and these jars too with my generated certificate: "jboss-iiop-client.jar, bean.jar, jbosssx-client.jar, myClient.jar, jnp-client.jar, jboss-j2ee.jar, jboss-common-client.jar, log4j.jar, jnet.jar, jbossmq-client.jar"

      when i compile&run things goes ok, but then i put the classes to *.htm, i get this exception: java.security.AccessControlException: access denied (java.lang.RuntimePermission org.jboss.security.SecurityAssociation.getPrincipalInfo)

      my policy file:
      grant {
      permission java.security.AllPermission;
      permission java.net.SocketPermission "*", "connect, accept, resolve";
      permission RuntimePermission "org.jboss.security.SecurityAssociation.getPrincipalInfo";
      permission java.lang.RuntimePermission "org.jboss.security.SecurityAssociation.getPrincipalInfo";
      permission java.lang.RuntimePermission "accessDeclaredMembers";
      permission java.lang.RuntimePermission "org.jboss.security.SecurityAssociation.getPrincipalInfo", "true";
      permission java.lang.RuntimePermission "accessDeclaredMembers","true";

      permission java.io.SerializablePermission "enableSubstitution";
      };


      please help me .... and sorry for my lang....