0 Replies Latest reply on May 8, 2003 3:07 PM by raogk

    Signed Applet accessing ejb

    raogk Newbie

      Hi,

      I have been trying hard to access a stateless session bean via a signed Applet without any success. Unfortunately, the link http://www.jboss.org/index.html?module=html&op=userdisplay&id=online-manual/HTML/ which is suppose to be listing how applet ejb communication could be accomplished is pointing to NOT FOUND!!!.
      I have also tried pointing jboss startup to a server.policy file with all security permissions being granted. My applet accessing the ejb uses the following code,
      Hashtable props = new Hashtable();
      props.put(InitialContext.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
      props.put(InitialContext.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces");
      props.put(InitialContext.PROVIDER_URL, "phu658.um.us.sbphrd.com:1099");
      InitialContext initialContext = new InitialContext(props);
      psrDaoBean = (PSRDAOBean)((PSRDAOBeanHome)initialContext.lookup(com.gsk.GII.appl.PSR.ejb.PSRDAOBeanHome.JNDI_NAME)).create();


      But I keep getting the following stacktrace repeatedly. Any help is greatly appreciated.

      java.security.AccessControlException: access denied (java.lang.RuntimePermission org.jboss.security.SecurityAssociation.getPrincipalInfo)

      at java.security.AccessControlContext.checkPermission(Unknown Source)

      at java.security.AccessController.checkPermission(Unknown Source)

      at java.lang.SecurityManager.checkPermission(Unknown Source)

      at org.jboss.security.SecurityAssociation.getPrincipal(SecurityAssociation.java:112)

      at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:74)

      at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:198)

      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)

      at $Proxy0.create(Unknown Source)

      at com.gsk.GII.appl.PSR.gui.swing.PSRApplet$1.run(PSRApplet.java:45)

      at java.security.AccessController.doPrivileged(Native Method)

      at com.gsk.GII.appl.PSR.gui.swing.PSRApplet.init(PSRApplet.java:29)

      at sun.applet.AppletPanel.run(Unknown Source)

      at java.lang.Thread.run(Unknown Source)