RMI EJB interoperability between JBoss EAP 6 and JBoss 5.1 GA -- Security Error

Posted on

Hi all,
I've an application running JBoss EAP 6 that needs to communicate with another application on JBoss 5 via RMI.
I followed the instructions posted here:
https://access.redhat.com/solutions/113463
and I'm getting the same issue described here:
https://access.redhat.com/solutions/224583

However, I'm trying to apply the proposed solution, adding the exclusion for module "org.picketbox" in the jboss-deployment-structure.xml but i'm always getting the same error:
[...]
Caused by: java.lang.ClassCastException: org.jboss.security.plugins.JBossSecurityContext cannot be cast to org.jboss.security.SecurityContext
at org.jboss.security.SecurityContextFactory.createSecurityContext(SecurityContextFactory.java:117)
at org.jboss.security.SecurityContextFactory.createSecurityContext(SecurityContextFactory.java:76)
[...]

Any ideas?

Thank you