...but it works when I start the tool rmiregistry on the same machine before I
start JSWDK. Besides I couldn't find that particular line in Jason's book. Could
you tell me the page number?

Maybe somebody from Sun could give me a hint...?

thanks,

-hendrik

Jian Li wrote:

> Yeah.  Also refer to O'REILLY's "Java Servlet Programming", you should use
> another real URL instead of localhost.  In other words, you needs 2
> machines.
>
> Jian
>
> On Mon, 22 Nov 1999, Geoff Soutter wrote:
>
> > I've never used RMI but I know the JSWDK uses RMI as the remote admin
> > interface. Maybe you are getting a conflict with that use?
> >
> > Geoff
> >
> > -----Original Message-----
> > From: Hendrik Schreiber <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> > Date: Monday, 22 November 1999 1:15
> > Subject: Problems with JSWDK + RMI
> >
> >
> > >Hi!
> > >
> > >In JSWDK 1.0 I'm trying to get hold of the RMIRegistry and binding an
> > >object to it by doing this:
> > >
> > > try {
> > >  // get existent registry
> > >  myRegistry = LocateRegistry.getRegistry("localhost", 1099);
> > >  // check if this works...
> > >  myRegistry.list(); // (1)
> > > }
> > > catch(Exception e) {
> > >  e.printStacktrace();
> > >  myRegistry = null;
> > > }
> > > if (myRegistry == null) {
> > >  // didn't work, so create new registry
> > >  myRegistry = LocateRegistry.createRegistry(1099); // (2)
> > > }
> > > // bind myObject
> > > myRegistry.rebind("myIdentifier", myObject);
> > >
> > >Now my problem is that (1) fails with a java.net.ConnectException:
> > >Connection refused and (2) fails with java.rmi.server.ExportException:
> > >internal error: ObjID already in use.
> > >So can't use the existing Registry and can't create a new one at the
> > >same time :-(
> > >I tries to create a new Registry listening to a different port, but that
> > >failed, too.
> > >
> > >If I start rmiregistry from the commandline before starting JSWDK it
> > >works smoothly, but I have the overhead of running a second JVM.
> > >
> > >Does anybody know what's going on here?
> > >
> > >TIA
> > >
> > >hendrik
> > >
> > >___________________________________________________________________________
> > >To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> > >of the message "signoff SERVLET-INTEREST".
> > >
> > >Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > >Resources: http://java.sun.com/products/servlet/external-resources.html
> > >LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> > >
> >
> > ___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

--
- - - - - - - - - - - - - - - - - - - - - - - - - - -
  tagtraum industries      http://www.tagtraum.com/
  jo!                 small&smart 2.1 servletengine
  Java Server & Servlets    The German servlet book
  The WebApp Framework        http://www.webapp.de/

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to