For BASIC authentication you need to have the following in web.xml
<login-config>
<auth-method>BASIC</auth-method>
<realm>default</realm>
</login-config>
And make sure you specify the principal to role mapping in sun-web.xml for role Users or enable default P2R mapping using admin Gui.
[Message sent by forum member 'kumarjayanti' (kumarjayanti)]
http://forums.java.net/jive/thread.jspa?messageID=289769