2 Replies Latest reply on Jan 9, 2006 11:50 PM by Deep Singh

    Problem with Remote Lookup in JBoss

    Deep Singh Newbie

      ::::::I am trying to lookup JBoss ports through this client Program:::::::

      Context ctx = new InitialContext(env);
      NamingEnumeration bl=(NamingEnumeration)ctx.listBindings("");
      Binding b=(Binding)bl.next();
      System.out.println(b.getName() + " Object is -> " + b.getObject());

      ::::::::::::::::On Executing this i am getting Exception::::::::::::::::

      javax.naming.CommunicationException: Could not obtain connection to any of
      these urls: localhost:1199 and discovery failed with error:
      java.security.AccessControlException: access denied (java.net.SocketPermission connect,accept,resolve) [Root exception is
      on: Failed to connect to server localhost:1199 [Root exception is
      java.security.AccessControlException: access denied (java.net.SocketPermission connect,resolve)]]

      if anyone knows the answer then do let me no please