I also tried copying the RemoteData_Stub to the "client" folder, but still the above error was thrown.
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
Originally posted by Eugene Kononov:
Are you making use of codebase parameter and policy file? Try to run your app without them.
Eugene.
Originally posted by Michael Morris:
Hi Dayanand,
It looks to me like your trying to cast to the object instead of the interface. You can only cast to a Remote interface on the client thru RMI. That's why it works on the server when not using RMI.
Hope this helps,
Michael Morris
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
Originally posted by Michael Morris:
Hi Dayanand,
ConnectionFactory has to extend Remote also. Here's what you need to do to get your connection:
Your ConnectionFactory should be bound to the RMI registry with some appropriate name using Naming.rebind() on the server.
Hope this helps,
Michael Morris