Why isn't the login popup not triggered for secured page
I'm very new to EJB security and GlassFish authentication, authorization mechanism. I'm working on a jsf visual web application with Netbeans 6.5.1 and Glassfish v2. I have a jdbc realm and configured sun-web.xml and web.xml to map the roles and restrict access to a page.
However, my problem is that when I restrict access to all the pages, it works and triggers the login pop up before loading the welcome page (using BASIC authentication). but when I restrict access to a page in a folder security, GlassFish does not prompt the login and redirects the user to the restricted page.
This is the role mapping in my sun-web.xml
and this is my web.xml
User Redirect page
Please help me solve the problem. Thanks a lot in advance.