Hi,
thank you for your answer.
I did it (2nd way) with Netbeans; I deployed the application and everything goes well but authentication still not worked because it looked at defualt realm.
So I renamed realm to lower-case letter and now it works!
Thank you very much.
[Message sent by forum member 'umbertoz']
http://forums.java.net/jive/thread.jspa?messageID=394602