EJB programming & troubleshooting: ClassCastException

  1. ClassCastException (3 messages)

    We're encountering the ClassCastException while trying to access a bean from a Servlet client. The error pertains to
    Impl_Stub. Please advice a solution?

    Threaded Messages (3)

  2. ClassCastException[ Go to top ]

    Please supply the piece of code for better understanding .
  3. ClassCastException[ Go to top ]

    I also encountered the same problem.I was getting this problem when i eas running my servlet on jsdk webserver and my beans on weblogic.My beans were under some package and interfaces i provided to my servlet were without any package.thats why it gives me this exception when i tried to get home reference of bean from servlet.what i did to overcome this problem , i removed package in which my bean was.

    mostly there is package problem in this type of error.
  4. ClassCastException[ Go to top ]

    Maybe you are using the same bean name or the scope parameter in the jsp is not set to page.