4 Replies Latest reply on Nov 29, 2004 10:57 PM by Cedric Rochefolle

    RMIRegistry problem

    Cedric Rochefolle Newbie

      Hi,

      I am using a simple RMI binding on JBoss. But I got ClassNotFound: it says it can't find the Stub class

      if (System.getSecurityManager() == null)
      {
      System.setSecurityManager(new RMISecurityManager());
      System.out.println("Setting a RMISecurityManager.");
      }
      Registry registry = LocateRegistry.createRegistry(5050);
      obj_AuthenticationManagerImpl = new AuthenticationManagerImpl();
      registry.rebind("AuthenticationManager", obj_AuthenticationManagerImpl);


      Note that the method containing this code is called from a Servlet.
      I have compiled my classes through Eclipe, and ran "rmic" from a command line.
      The WAR is created using the packager of JBoss. The WAR file contains the Stub and Skel classes.
      Is there anything I missed ?

      Thank you.