0 Replies Latest reply on Jun 29, 2003 5:23 AM by blackers

    org.jboss.security.SecurityAssociation.getPrincipalInfo in A

    blackers

      When trying to access an EJB Session Bean from my java applet I get the following exception. What would be causing this? Do all applets accessing EJB's need to be signed? I would like to not have to sign the code if possible. The applet is being run from an expanded war file from the same server as the EJB's ie. http://localhost:8080/applet/myapplet.html



      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 client.TreeDir.login(Unknown Source)

      at client.TreeDir.init(Unknown Source)

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

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



      Thanks Mat