ok, i solved it. the solution is quite project specific, so that it is not useful to post here...
You put the users.properties and roles.properties file in your web application classes folder.
users.properties will contain entries like
and roles.properties will look like
The same user entry must be in users_en.propertries file which is in the entity management jar file.
This will solve your problem.
sorry for the late answer. As i mentioned above the solution is quite project specific and might not help you much.
Our application is deployed as an EAR. the jsf project is part of that ear as well as the auth-module. so the only thing i had to do is to reference this auth-module when creating the logincontext.
a very good article about integrating JSF with JAAS you can find here:
hope that helps! good luck!