File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Exception due to Package Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Exception due to Package" Watch "Exception due to Package" New topic

Exception due to Package

Arun Kumarr
Ranch Hand

Joined: May 16, 2005
Posts: 661

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 ]

If you are not laughing at yourself, then you just didn't get the joke.
I agree. Here's the link:
subject: Exception due to Package
It's not a secret anymore!