I solved, just removed @LocalBean from Hello class. But now I can't access the same EJB locally (inside EJBSERVER itself).
-- 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--tp4680774p4680778.html Sent from the TomEE Users mailing list archive at Nabble.com.