General J2EE: ClassCastException while trying to get remote interfaces of RMIs
- Posted by: Maniranjan Kumar
- Posted on: July 26 2002 07:42 EDT
I m trying to get remote interfaces of my RMI start-up classes from weblogic 6.1 sp2 to together's test server1.0. While trying to lookup it throws class cast exception. I m stuck in it for last couple of days. I have cross-checked my classpaths and source files so many times. Everything is similar in both of the servers.
Please gimme a way out of it.
- ClassCastException while trying to get remote interfaces of RMIs by Darren Abbruzzese on July 26 2002 08:59 EDT
- ClassCastException while trying to get remote interfaces of RMIs by Maniranjan Kumar on July 26 2002 13:24 EDT
Sounds like you've got class loader issues. The interface that you are using to cast the remote stub has a different class loader from the one that loads the remote stub. This will cause a class cast exception.
Yeah I understand that it is a class loader issue. But getting no way out of it.
Is there any way out?