There where problems with simple web applications using JAAS security constraints in web.xml. I got various exceptions like invalid password (for correct password) in jboss console for jboss versions 7.1 .. 7.3 even in jbos eap 6 with no solution on the net :http://www.coderanch.com/t/568240/JBoss/JAAS-Login-PropertiesUsers-JBoss-Final
Today I compiled the jboss as 7.2 prerelease from git hub and everything is working fine.
The curious thing is that even in jboss commercial version eap 6 this issue was not solved for a base service like JAAS.