I've the same problem with doAs.
I spent several days on searching this bug, and I'm sure, that it's a very serious bug, that needs to be fixed.
I really need this functionality and I hope, this will work soon
JBoss does not use the JAAS Subject.doAs authorization mechanism. Read the JAAS howto at the start of the forum for the use of JAAS.