ClassCastException while trying to get remote interfaces of RMIs

Discussions

General J2EE: ClassCastException while trying to get remote interfaces of RMIs

  1. hi,
    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.
    regards,
    Maniranjan Kumar
  2. 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.
  3. Yeah I understand that it is a class loader issue. But getting no way out of it.

    Is there any way out?

    regards,
    Maniranjan Kumar