From owner-freebsd-java Mon Jun 24 7:28:40 2002 Delivered-To: freebsd-java@freebsd.org Received: from ext-nj2gw-3.online-age.net (ext-nj2gw-3.online-age.net [216.35.73.165]) by hub.freebsd.org (Postfix) with ESMTP id DF7D237B401 for ; Mon, 24 Jun 2002 07:28:34 -0700 (PDT) Received: from int-nj2gw-4.online-age.net (int-nj2gw-4.online-age.net [3.159.236.68]) by ext-nj2gw-3.online-age.net (8.9.3+Sun/8.9.1/990426-RLH) with ESMTP id KAA05307; Mon, 24 Jun 2002 10:26:52 -0400 (EDT) Received: from crdns.crd.ge.com (localhost [127.0.0.1]) by int-nj2gw-4.online-age.net (8.9.3+Sun/8.9.1/990426-RLH) with ESMTP id KAA00327; Mon, 24 Jun 2002 10:26:51 -0400 (EDT) Received: from exc01crdge.crd.ge.com (exc01crdge.crd.ge.com [3.1.116.47]) by crdns.crd.ge.com (8.11.6/8.11.6) with ESMTP id g5OEQoi09983; Mon, 24 Jun 2002 10:26:50 -0400 (EDT) Received: by exc01crdge.crd.ge.com with Internet Mail Service (5.5.2653.19) id ; Mon, 24 Jun 2002 10:26:50 -0400 Message-ID: From: "Lapinski, Michael (Research)" To: "'j mckitrick'" , Jonathan Chen Cc: freebsd-java@FreeBSD.ORG Subject: RE: Frustrating Java RMI problem, reprise Date: Mon, 24 Jun 2002 10:26:49 -0400 X-Mailer: Internet Mail Service (5.5.2653.19) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The rmiregistry should never be run with *any* classpth at all. It should never load classes locally over the filesystem, It gets its classpath from the annotated codebase that is gets from every Remote object that registers with it. If the registry is run with a local classpath and you do rmi over the network (not everythign on the same box) many things will be broken because the JVM ignores the annotated codebase that comes with a given Object type if it can be found locally and deserialized. So when a different machine on the network contacts the registry and gets the serialized stub that stub will have no codebase and there will be no way for the stub to be deserialized, resulting in a ClassNotFoundException. rmiregistry startup instructions: http://java.sun.com/j2se/1.4.1/docs/guide/rmi/getstart.doc.html#5522 -mtl -------------------------------------------------- Michael Lapinski Computer Scientist GE Corporate Research & Development "I think there is a world market for maybe five computers." - IBM Chairman Thomas Watson, 1943 ->-----Original Message----- ->From: j mckitrick [mailto:jcm@FreeBSD-uk.eu.org] ->Sent: Monday, June 24, 2002 6:21 AM ->To: Jonathan Chen ->Cc: freebsd-java@FreeBSD.ORG ->Subject: Re: Frustrating Java RMI problem, reprise -> -> ->| >From the trace above, my guess is the rmiregistry needs to ->have it's ->| classpath set properly as well. That's why when you ran it in ->| ~/myjava, the code worked (classpath by default includes . in its ->| environment). -> ->Jonathan, you're a genius. ;-) ->I think you solved my problem. Thanks! Now I can move on to XML-RPC. -> -> -> ->jm ->-- ->My other computer is your windows box. -> ->To Unsubscribe: send mail to majordomo@FreeBSD.org ->with "unsubscribe freebsd-java" in the body of the message -> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message