Try:
PhoneEntryHome home = (PhoneEntryHome)
PortableRemoteObject.narrow(boundObject,PhoneEntryHome.class);
It should work fine.
Regards,
Santosh.
----- Original Message -----
From: Marcus Lankenau <[EMAIL PROTECTED]>
To: Orion-Interest <[EMAIL PROTECTED]>
Sent: Friday, December 01, 2000 3:51 PM
Subject: class cast exception
> 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
>
>
>
>