I built an rmi application which searches file. It works fine on terminal. I wanted to give the search word thru JSP and wrote the client code in the servlet.
It is giving me the exception Exception occured: java.rmi.UnmarshalException: error unmarshalling return; nested exception is: java.lang.ClassNotFoundException: myRMIImpl_Stub
I wanted to ask if I need to use policy file (which I was using in terminal)and stub file for client end. I copied the stub file in the classes folder.
Thanks
I wanted to ask if I need to use policy file (which I was using in terminal)
You only need a policy file at the client if you are using a SecurityManager at the client.
and stub file
The exception is telling you that you need it.
I copied the stub file in the classes folder.
The exception is telling you that you didn't do that correctly.