classCastException while simple web application (WAR) calling the EJBs in EAR
posted 14 years ago
We have got a simple web application (WAR) calling the EJBs in EAR file. Both the EAR as well as WAR are deployed in same server. In order to call the EJB's within EAR file, we have included the necessary client jar of EJB application within our WAR file. ( This WAR file is created using the Application Assembly Tool) Now , when we are calling the EJB's method by passing the object created in jsp. (within the web application) We are getting the classCastException on EJB side. This happens only when some object is created on jsp side and passed as an argument of the method called on EJB.
Similar setup in which WAR as well as EAR are deployed on same server and jsp within WAR is calling EJB's within EAR, is working fine on weblogic 7.0 appServer. Can you please let us know the possible cause of this problem and the solution to avoid or correct this problem on websphere ?