Search for the class in your entire classpath. If you have the same class in
mulitple directories, You get this exception.
Sreenivas R.V.
Stefan Tilkov wrote:
> Check whether both classes (the one the object has and the one you're trying
> to cast it to) have been loaded by the same class loader, e.g. using
> YourClass.class.getClassLoader().getClass() and
> yourObject.getClass().getClassLoader().getClass().
>
> Stefan
>
> ____________________________________________________________________
> Stefan Tilkov -- stefan(dot)tilkov(at)innoq(dot)com -- www.innoQ.com
>
> > -----Ursprungliche Nachricht-----
> > Von: A mailing list for Enterprise JavaBeans development
> > [mailto:[EMAIL PROTECTED]]Im Auftrag von Jim Archer
> > Gesendet: Montag, 28. August 2000 08:36
> > An: [EMAIL PROTECTED]
> > Betreff: ClassCastException when narrowing
> >
> >
> > Hi All...
> >
> > I am using J2EE RI to test some entity beans I have written (CMP) and
> > deployed into J2EE RI 1.2.1 and Cloudscape. I'm writing to EJB 1.1.
> >
> > In my test client, after I get the context, I do the
> > PortableRemotrObject.narrow() call and get a ClassCastException. I have
> > been through my code a few times (not that I coulden't miss anything) and
> > didn't see anything wrong.
> >
> > Can someone give me an idea as to where to look for the cause of this
> > exception?
> >
> > Thanks very much...
> >
> > Jim
> >
> > ==================================================================
> > =========
> > To unsubscribe, send email to [EMAIL PROTECTED] and include
> > in the body
> > of the message "signoff EJB-INTEREST". For general help, send email to
> > [EMAIL PROTECTED] and include in the body of the message "help".
> >
> >
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".