Hello rathm,
Can you please post the code of your custom login module?
I'm using a custom UsernamePasswordLoginModule and whenever I call a secured ejb, I get the following exception:
07.03.2012 09:38:52 org.jboss.remoting3.remote.RemoteConnection handleException
ERROR: JBREM000200: Remote connection failed: javax.security.sasl.SaslException: Authentication failed: all available authentication mechani
sms failed
javax.naming.NamingException: Failed to create remoting connection [Root exception is java.lang.RuntimeException: javax.security.sasl.SaslEx
ception: Authentication failed: all available authentication mechanisms failed]
...
Regards,
Sebastian