-
1. Re: ClassCastException:Cannot cast $Proxy73(id=2070) to org.
starksm64 Sep 23, 2005 10:57 AM (in response to breski)Moved to user forum.
-
2. Re: ClassCastException:Cannot cast $Proxy73(id=2070) to org.
bill.burke Sep 23, 2005 11:12 AM (in response to breski)1) You probably have a copy of ShoppingCart interface class in your war?
2) Is ShoppingCart a local or remote interface? If it is remote, it should be ok to have a copy. If it is a local interface, then you have classloaer issues. Why? Well, a WAR file is required to look in itself for a class before going outside the WAR. So, it picks up the ShoppingCart class from the war, but JNDI returns a proxy that was created by the EJB container. -
3. Re: ClassCastException:Cannot cast $Proxy73(id=2070) to org.
breski Sep 24, 2005 2:00 AM (in response to breski)Thanks a lot.
The ShoppingCart is a remote interface.It's in the war.
When the ShoppingCartBean was annovated @Stateless,all things went properly.But when the ShoppingCartBean was annovated @Statefull,It raised the ClassCastException.
Is it a bug or not? -
4. Re: ClassCastException:Cannot cast $Proxy73(id=2070) to org.
breski Sep 24, 2005 5:13 AM (in response to breski)Sorry,that's my fault,I shouldn't pack the remote interface into my war archive.
It's OK now!Thank you again.