tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: EJB remote access (WAR to WAR) throws java.lang.ClassCastException: com.sun.proxy.$Proxy*** cannot be cast to ***
Date Sun, 18 Dec 2016 16:19:11 GMT
Local bean defines a class used as API in the webapp classloader so not
accessible to other apps. Local uses the interface and a potential
classloader copy between apps so not shocking it works. Sharing HelloJNDI
in tomee lib should make it naturally working.

Le 18 déc. 2016 16:50, "alltomee" <andrelopes.all@gmail.com> a écrit :

I've created a local interface called HelloLocal, and added annotation
@Local(HelloLocal.class) to Hello class. Everithing is working now (local
and remote client). I don't needed to create the local interface at
Glassfish using the annotation @LocalBean, so anyone know why this happen?
Thank you.



--
View this message in context: http://tomee-openejb.979440.
n4.nabble.com/EJB-remote-access-WAR-to-WAR-throws-java-
lang-ClassCastException-com-sun-proxy-Proxy-cannot-be-
cast--tp4680774p4680779.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message