0 Replies Latest reply on Jul 7, 2004 8:20 AM by Marcus Cordes

    InitialContext or JNDI Problem with JMS

    Marcus Cordes Newbie

      Hi, I have an signed applet which communicates over Http with Servlets (both in a war-file). And the servlets communicate with my EJBs.

      Now I want to set up JMS on my system, and I had no problem to set it up for the servlets. But when I try to get a ConnectionFactory inside the applet I always get the following Error inside the JVM. (I never configured the IP
      I searched for absolutely everything and don`t know where the problem is.
      Maybe I can get some help?

      Looking up connection factory...

      java.security.AccessControlException: access denied (java.net.SocketPermission connect,accept,resolve)

      at java.security.AccessControlContext.checkPermission(Unknown Source)
      at java.security.AccessController.checkPermission(Unknown Source)
      at java.lang.SecurityManager.checkPermission(Unknown Source)
      at java.lang.SecurityManager.checkMulticast(Unknown Source)
      at java.net.MulticastSocket.joinGroup(Unknown Source)
      at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1069)
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1192)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:514)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
      at javax.naming.InitialContext.lookup(Unknown Source)
      at liato.web.applet.JmsClient.register1(JmsClient.java:92)
      at liato.web.applet.JmsClient.(JmsClient.java:46)
      at liato.web.applet.Liato_Applet.init(Liato_Applet.java:91)
      at sun.applet.AppletPanel.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)


      I get no errors with the InitialContext, but I don`t get any connection-factory.
      Need more code? Just post "more"

      Thanks Marcus

      At first: What does: mean....?