2 Replies Latest reply on Jul 30, 2002 1:18 AM by Thiagu

    JNDI lookup from an Applet

    Thiagu Newbie

      Hi,

      I'm basically new to the JBoss, I would like to look up an object bound to JNDI from an applet, when i tried the same i encounter the following exception, can anybody help me out.


      I would like to look up an EJB from an applet. I tried to the best of my knowledge but continuously landing with the same exception,

      java.security.AccessControlException: access denied (java.lang.RuntimePermission org.jboss.security.SecurityAssociation.getPrincipalInfo)
      at java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
      at java.security.AccessController.checkPermission(AccessController.java:399)
      at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
      at org.jboss.security.SecurityAssociation.getPrincipal(SecurityAssociation.java:109)
      at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:72)
      at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:185)
      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
      at $Proxy0.findByPrimaryKey(Unknown Source)
      at com.adventnet.ejb.client.StudentClient.getMailID(StudentClient.java:54)
      at com.adventnet.ejb.client.StudentPanel.queryButtonActionPerformed(StudentPanel.java:631)
      at com.adventnet.ejb.client.StudentPanel$queryButton_queryButton_conn.actionPerformed(StudentPanel.java:607)
      at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
      at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1504)
      at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
      at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:216)
      at java.awt.Component.processMouseEvent(Component.java:3715)
      at java.awt.Component.processEvent(Component.java:3544)
      at java.awt.Container.processEvent(Container.java:1164)
      at java.awt.Component.dispatchEventImpl(Component.java:2593)
      at java.awt.Container.dispatchEventImpl(Container.java:1213)
      at java.awt.Component.dispatchEvent(Component.java:2497)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
      at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
      at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
      at java.awt.Container.dispatchEventImpl(Container.java:1200)
      at java.awt.Component.dispatchEvent(Component.java:2497)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)


      Can anybody help me out of this. The exception is thrown where i try to find a info using primary key,


      Thanks
      Thiagu.C.