• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

classCastException while simple web application (WAR) calling the EJBs in EAR

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ?
 
I don't always make ads but when I do they're tiny
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic