Thursday, August 24, 2006

403 Forbidden

If you have problems logging in as a user with credentials (this seems to happen to users other than admin) then you just need to tweak your web.xml file.

Modify the <security-constraint> section from
<pre>Instead of:
<auth-constraint>
<role-name>*</role-name>
</auth-constraint>

Change to:
<auth-constraint>
<role-name>admin</role-name>
<role-name>user</role-name>
<role-name>manager</role-name>
</auth-constraint>

Note: I found this answer here.

1 comment:

William said...

Acctually i'm a newbie , not so new.
i know bout the 403 forbidden cause i've been hacking websites to download movies
but the 403 forbidden is not my level.
Wish you could teach me how..