3 Replies Latest reply on Feb 6, 2003 6:20 AM by Juha Lindfors

    Excetion while calling EJB deployed on remote machine

    Sanjay Newbie

      Hello,
      I am facing problem while calling EJB deployed on jboss on another machine from client running on different machine. It it gives me following exception. Please let m know what are the changes I should make and where. Below is the snippet I used but I get error below. It is unable to locate EJB home interface.

      Hashtable env = new Hashtable();
      env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
      env.put(Context.PROVIDER_URL, "jnp://xxx.xxx.xxx.xxx:1099");
      env.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
      InitialContext jndiContext = new InitialContext(env);

      EXCEPTION::::

      Root exception is java.lang.ClassNotFoundException:no security manager: RMI class loader disabled

      ClassNotFoundException is because its not able to locate the EJB Remote Interface.
      Awaiting your reply.

      Regds,
      Sanjay