Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

can't get j_security_check to work

843838Apr 3 2007
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 1 2007
Added on Apr 3 2007
0 comments
132 views