permaculture playing cards*
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
Author

Exception due to Package

Arun Kumarr
Ranch Hand

Joined: May 16, 2005
Posts: 513

Hai,
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: http://aspose.com/file-tools
 
subject: Exception due to Package
 
Similar Threads
Getting the Local Home
New to EJB: ClassCastException on EJB Local Home
ClassCastException on client.main
ClassCastException in EJB client
Going crazy casting local home interface