Hey...
Sorry for my bad english, i'm austrian... ;)
I have the following problems with a little Program, which should translate Methods from the ACL- Management-Classes over an RMI-Adapter to the client:
I created on server-side a RMI-Adapter- Class + Interface. I copied the Interface from server to client (they are in different packages,
because I thought, it's easier to split them up in several projects, if I seperate them in packages in advance).
In case of an import of the Interface to the client, there are no problems, but when i copy the file from server to client, I get the following error on execution:
java.lang.ClassCastException: server.RMIAdapter_Stub cannot be cast to client.RMIAdapterIF
at client.ACLGui.<init>(ACLGui.java:63)
at client.Main.main(Main.java:11)
the relevant client code:
My class-hierachy:
#client
---ACLGui.class
---Main.java
---RMIAdapterIF.class
#server
---RMIAdapter.class
---RMIAdapterIF.class
My RMIAdapter.class:
I hope, my requests weren't too unintelligible and you could help me before despair ;)
thanks a lot
George