can't get j_security_check to work
Hi,
I'm trying to secure my web application using a simple basic authentication.
I'm using netbeans 5.5.1 and glassfish v.2.
Here are the steps i've taken:
- I've created a new realm in the admin console. it's a fileRealm named realmOne
- I added one user to the realm: user:myself, group: groupOne
- in my application (web.xml) i've configured a Form login configuration.
I added realmOne as Realm name and added the form login and error pages.
- I added roleOne in the Security Roles section.
- I created a ConstraintOne security contraint with a web resource collection for GET and POST with a URL Pattern of /*
- I also enabled Authentication Constraint for roleOne.
- in sun.web.xml I've added a security role mapping to map roleOne to groupOne.
When I try to access the jsp page, I'm beeing redirected to the login.jsp page and when I fill in the form I get "Access to the specified resource (Access to the requested resource has been denied) has been forbidden."
I have absolutely no idea what is going wrong here. Can somebody help me?
Greetings,
Kristof Taveirne