Dyego Souza Dantas Leal wrote On 05/17/06 01:56 PM,:
> I have this lines in my web.xml
>
> <security-role>
> <role-name>test</role-name>
> </security-role>
>
> <security-constraint>
> <display-name>Security Test</display-name>
> <web-resource-collection>
> <web-resource-name>AcessosGerais</web-resource-name>
> <url-pattern>/welcomeJSF.jsp</url-pattern>
> <url-pattern>/faces/welcomeJSF.jsp</url-pattern>
> <http-method>GET</http-method>
> <http-method>POST</http-method>
> <http-method>HEAD</http-method>
> <http-method>PUT</http-method>
> <http-method>OPTIONS</http-method>
> <http-method>TRACE</http-method>
> <http-method>DELETE</http-method>
> </web-resource-collection>
> <auth-constraint>
> <role-name>test</role-name>
> </auth-constraint>
> </security-constraint>
>
>
> <login-config>
> <auth-method>FORM</auth-method>
> <realm-name>dbAuth</realm-name>
> <form-login-config>
> <form-login-page>/login.jsp</form-login-page>
> <form-error-page>/loginerr.jsp</form-error-page>
> </form-login-config>
> </login-config>
>
>
>
>
> But, if the user access localhost/welcomeJSF.jsp the security
> container does not call LOGIN FORM !!!!
What is the context root in your application?
Is it suppose to be localhost/<context-root>/welcomeJSF.jsp?
>
> Is very strange... because the administration not call LOGIN too !!!
>
> Is default disabled ?
>
> My web.xml is wrong ?
>
> How to enable this feature?
>
>
>