Well for one thing the "localhost" in your call to getRegistry is not
needed. If you just specify the port it will use the current host by
default. Other than that there is not enough code here to debug.
-Darryl
> -----Original Message-----
> From: Lam Sze Kin [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, March 17, 1999 3:11 AM
> To: java-apache-users
> Subject: Servlet using RMI
>
>
>
> The servlet throws the exception at the code registry.lookup:
>
> try {
> Registry registry = LocateRegistry.getRegistry("localhost",
> 2233);
> ms = (MessageServer) registry.lookup("KinMessageServer");
> } catch (Exception e) {
> e.printStackTrace();
> }
>
>
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://www.working-dogs.com/>
Problems?: [EMAIL PROTECTED]