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" <[email protected]> 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.
