Post the valve code and configuration if you want help.
Did you ever get this problem solved. I have a similar problem. I have a custom authenticator which calls a custom Jaas realm for authentication... I have this working on tomcat, but don't know how to set it up in JBoss. Any help would be appreciated.