> > PhoneEntryHome home = (PhoneEntryHome) boundObject;
should be :
PhoneEntryHome home =
(PhoneEntryHome)javax.rmi.PortableRemoteObject.narrow(boundObject,
PhoneEntryHome);

Marcus Lankenau wrote:
> 
> Hi!
> 
> I've started developing a very simple phonebook application for
> learining purpose. The app consists of an ejb and a servlet adding and
> showing the phone entries. The servlet is running quite well at home,
> but in office I get
> this exception:
>     Exception caught: java.lang.ClassCastException:
> PhoneEntryHome_EntityHomeWrapper14
> while casting the homeinterface:
>    Object boundObject = context.lookup("java:comp/env/ejb/PhoneEntry");
> > PhoneEntryHome home = (PhoneEntryHome) boundObject;
> 
> Any idears what is going wrong?
> 
> thx in regards
> Marcus Lankenau

-- 
======================================================================================
Sven E. van 't Veer                                          
http://www.cachoeiro.net
Java Developer                                                      [EMAIL PROTECTED]
======================================================================================

Reply via email to