Bjarne,
Yes, but only when I'm running under Tomcat. Here's what I get:
ref = ctx.lookup( "Favorites" );
ref.toString(); // returns "FavoritesHome"
ref.getClass().toString(); // returns "$Proxy0"
home = (FavoritesHome)PortableRemoteObject.narrow(ref,
FavoritesHome.class);
// generates a java.lang.ClassCastException
When I invoke the same Java wrapper class from the command line, in another
JVM, it works just fine. I don't know what to make of it.
-- Greg
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Bjarne Olsen
Sent: Tuesday, October 19, 1999 7:24 AM
To: [EMAIL PROTECTED]
Subject: [jBoss-Dev] ClassCastException
Hi!
Has anybody ever had a ClassCastException ?
My Finder-Method findByName returns a collection
of "Person" Objects. When I try to display the data of one person via
while-loop and EJBPerson p = (EJBPerson)collection.iterator().next; jBoss
keeps quite, does its work as if nothing had happened my client prints
"java.lang.ClassCastException: $Proxy5".
Anybody?
TIA,
Bjarne