Article View: borland.public.jbuilder.java.api
Article #281Re: RMI question
From: Petar Banicevic
Date: Sat, 27 Mar 2004 21:56
Date: Sat, 27 Mar 2004 21:56
53 lines
2860 bytes
2860 bytes
Perhaps this isn't a case, but anyway: don't forget about "java.rmi.server.codebase" ... Petar "George" <geo@geo1.com> wrote in message news:405d1169@newsgroups.borland.com... > I just started learning Java RMI and am having a problem getting my first > server up and running. > > I am using JBuilder X Foundation on Win 98. I have a project called Test > located at C:\ATest. There are 3 source files in a package called test > located at C:\ATest\src\test. The class files go to C:\ATest\classes\test. > The 3 source files are WeatherIntf.java (the remote interface), > WeatherServer.java (the server program), and RMIdemo.java (the client > program). (Yes, this is the example program from Peter van der Linden's > book Just Java.) > > I build the project in JBuilder. Then from a DOS window I run the rmic on > WeatherServer.class to generate the stub and skeletons (I don't see a way to > do this in JBuilder X Foundation). These two files go to > C:\ATest\classes\test (i.e same directory as all other classes in project). > I then start the RMIRegistry from Tools | RMIRegistry in JBuilder. I then > run WeatherServer from JBuilder using a runtime configuration set up with a > policy file that grants the required socket permissions (connect and > accept). > > At this point I get the following error: > > RemoteException occurred in server thread; nested exception is: > java.rmi.UnmarshalException: error unmarshalling arguments; nested > exception is: > java.lang.ClassNotFoundException: test.WeatherServer_Stub > > In the output window in JBuilder I also see the following fragment along > with a list of other paths: > C:\JBUILDERX\JDK1.4\bin\javaw -classpath "C:\ATest\classes;"....... > > Since C:\ATest\classes is in the class path, I don't understand why > test.WeatherServer_Stub cannot be found. It is in the very same directory. > > Any help would be greatly appreciated. > Thanks > George > >
Technical Details
Message-ID:
<4065f86c@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsrout1.ntli.net!news.ntli.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<405d1169@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,8ff13b2f02af21f5 X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2004-03-27 14:09:27 PST From: "Petar Banicevic" <petar2@kupi.biz> Newsgroups: borland.public.jbuilder.java.api References: <405d1169@newsgroups.borland.com> Subject: Re: RMI question Date: Sat, 27 Mar 2004 22:56:19 +0100 Lines: 55 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 193.198.139.66 Message-ID: <4065f86c@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1080424556 193.198.139.66 (27 Mar 2004 13:55:56 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsrout1.ntli.net!news.ntli.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail