can you please try this [1] sample? it should work on any container if
you set up new security realm similarly to what is described in README.html.
From what I can see, <login-config> elem lacks <realm-name>, but I'm
not sure how required that is.. anyway, check out mentioned sample, it
does basically what you need, just with different container.