This content has been marked as final.
Show 3 replies
-
1. Re: java.lang.ClassCastException: javax.naming.Reference
peterj Oct 2, 2006 6:29 PM (in response to chandara)I assume that line 21 is the ctx.lookup("queue/mdb") method. It is obviously returning an object. What type of object is it?
-
2. Re: java.lang.ClassCastException: javax.naming.Reference
talktoudaykumar Apr 13, 2009 7:43 AM (in response to chandara)same problem. I'm using a session bean. I'm trying to access this bean from my client program.
When i print getClass().getName() it is printing
"javax.naming.Reference". When i try to cast this to session bean interface, it is giving class cast exception.
I searched for this in various posts. Every one is saying that it is the problem of class loader.
Please help me in this. -
3. Re: java.lang.ClassCastException: javax.naming.Reference
peterj Apr 13, 2009 12:12 PM (in response to chandara)talktoudaykumar, please do not resurrect 2-1/2 year old posts. Instead, start a new topic.