4 Replies Latest reply on Nov 23, 2005 1:30 PM by David Leeson

    ClassCastExeception on EntityBean returned from Stateless Se

    Kimberly Turner Newbie

      I am attempting to convert an application from EJB2.1 to EJB3.0. I am using JBossAS 4.0.3SP1 EJB3 installation and MyFaces 1.1.1. I am receiving a ClassCastException on an EntityBean that is returned from a method of a stateless SessionBean. I am following the code examples in the tutorial and the DVD example application. The SessionBean method uses the find method of the PersistenceManager to retrieve an EntityBean with its primary key. This works fine, but when the EntityBean is returned to the calling method in a JSP managed bean, a ClassCastException occurs. Any help is greatly appreciated.