This week's giveaway is in the Threads forum.
We're giving away four copies of Java Concurrency Live Lessons and have Doug Schmidt on-line!
See this thread for details.
Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Exception due to Package  RSS feed

Arun Kumarr
Ranch Hand
Posts: 662
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I connect to another PC which has Weblogic server running in it and has a TestSession EJB deployed in it in the following package "nazer.testing".

Now when I look up the EJB from my clientside code (which uses my client side Home Interface and EJB Object interface in the same package) and try to cast it throws a ClassCastException. But When I place my Client Code(and the Home and EJB object interface) in the package "nazer.testing", I don't get any ClassCastException.

Can I know Why?
Is there any relation between packages of the remote EJB and the Client side interfaces.
[ August 23, 2005: Message edited by: Arun Kumarr ]
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!