Hello Every Body. I am Newbie in RMI. So please be patient and read whole of the posting. My problem goes like this I have the following files (i) Product.class which is Remote (ii)ProductImpl.class Product's implementations class (iii)ProductServer.class which binds the references to registry (iv)ProductClient.class which invokes remote methods (v) a policy file client.policy (iv) a Stub. When i start the server and client in the same directory ,after starting the rmiregistry every thing is working fine. After this i divided the files into following directories 1) server which contains (i)Product.class (ii)stub (iii)ProductImpl.class (iv)ProductServer.class 2) download (i) stub (ii)Product.class 3) client (i)client.policy (ii)Product.class (ii)ProductClient.class After this i have placed download in public_html and started the JWS.Then started a new shell, uset the classpath then start rmiregistry. Then i changed to the server & started the server with codebase=http://myserver:8080/download/ Then i changed to client & executed the client as security.policy option I got a Transport marshal exception, nested exception EOFException. Can any one pleaaaase explain me why. (This is an example from core java book) Thanx in advance Note:- I have unset classpath using the following command set classpath=;%classpath%;. Is this ok ------
[This message has been edited by clkanth (edited June 23, 2000).]
Milind Kulkarni
Ranch Hand
Joined: Jun 01, 2000
Posts: 146
posted
0
Hi, Can you please send me all the source files. Here is my mail id: milindkulkarni@usa.net Regards, Milind
Anonymous
Ranch Hand
Joined: Nov 22, 2008
Posts: 18944
posted
0
Hi Milind! I got the solution.But i have mailed asu have said my source files.The problem was i was writing in the client as Naming.lookup("rmi://nist10:8080/xx"); Ihave omitted :8080 and it worked fine. I did this silly thing(writing :8080, Idid this while setting the codebase property,so thaught that i should do it the client program also) b'cause i thaught i should mention the port of the JWS. I was wrong.I removed it everything worked fine. Dont bother my attachment. Thank you very much for responding for my silly query. Hope u extend your cooperation in the future also Thanx once again Clkanth