File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes BEA/Weblogic and the fly likes Role management Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Role management" Watch "Role management" New topic

Role management

Alex Anderson

Joined: Dec 06, 2005
Posts: 10
Using weblogic 9.0.
For a certain web app I want to restrict access using the builtin security-constraing/login-config in web.xml.

The problem I have is how to get users to belong to a certain role.
In the Administration Console i added a Role "operator", a group "mygroup" and user "myuser". I successfully added the user "myuser" to the group "mygroup", but how do i add this group/user to the specified Role?

I always get login failed when trying to login using the form.

Here is my web.xml

Here is the login.jsp page
Alex Anderson

Joined: Dec 06, 2005
Posts: 10
Adding some weblogic specific instructions in weblogic.xml did the trick.
ankush purwar
Ranch Hand

Joined: Sep 02, 2005
Posts: 46
You have not defined users,groups and roles and assign user to groups,
But I think you have not defined Roles for groups
see the Realms -> nameofrealm -> Global Roles.
And Check the Caller is a member of group.
I agree. Here's the link:
subject: Role management
It's not a secret anymore!