0 Replies Latest reply on Dec 30, 2008 8:40 AM by Fabio Santos

    Accessing a remote EJB from a custom LoginModule

    Fabio Santos Newbie

      Hi. I created a custom LoginModule and I need to call a remote service from it to do some security validations. The problem is that, like other EJB clients, I published the EJB remote interface to the jar where my LoginModule is packaged (using Maven assembly plugin). The lookup on the LoginModule works fine, but I get a ClassCastException when calling PortableRemoteObject.narrow(ref, clazz).

      I tested the same source code that does the lookup from a simple Java client and worked fine. The service is running ok too. Am I missing something?

      Thanks for your time.