java - RMI - Does client side have to have definitions of used classes on server side? -


i have simple client-server application using rmi. server side supposed generate sort of pdf (itext) file, , client should display it.

while trying generate pdf on server side invoking proper method of own common remote interface, classnotfoundexception thrown on client side.

caused by: java.lang.classnotfoundexception: com.itextpdf.text.exceptionconverter (no security manager: rmi class loader disabled) 

i thought, using rmi using black box - client invokes method, , receives response, without knowlage of how done, common class both sides remote interface. more on thought allow me shrink required dependencies on client side minimum.

is mandatory client have server's libraries in classpath work?

edit: strange fact there no exceptions cought , logged on server side. if add server side project dependency client, works fine.

just guess here, it's not catching , handling exceptionconverter on server side , it's propagating client has no definition it.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -