Sorry, but your link don't help me.
I don't andestund what i should do to solve this problem
I can help you.
To resolve this problem you must upgrate to the newer version JBOSS from CVS or I can send you patched by me jar file for tomcat-jboss integration.
When you create your Group in getRoleSets() in your login module, make sure you do something like this:
// create the CallerPrincipal group groups = new SimpleGroup("CallerPrincipal"); groups.addMember(identity);
where "identity" is an instance of your custom Principal.