This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The website declined to show this webpage

 
Jay Abrahm
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I was setting up another profile in my local machine to mirror an existing WAS 6.1 server setting which has application security authenticating with LDAP. When I try to hit the application in the new server I get the following exception

SECJ0129E: Authorization failed for testUser while invoking GET on default_host:LDAPTestApp/, Authorization failed, Not granted any of the required roles: tst

I checked a couple of forums and noticed that I had to update
Enterprise Applications > LDAPTestApp > Security role to user/group mapping and check All authenticated? checkbox.

But I get an error message when I apply this change
"Exception thrown in RequiredModelMBean while trying to invoke operation setApplicationInfo null"

Also, I notice that my Enterprise Application Project does not have ibm-application-bnd.xmi. Is this an issue ?
 
Jay Abrahm
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have fixed it, more of a hack. The issue is not with the server created but the EAR. When I copied over the Enterprise Application Project instead of creating a new one and adding the modules to this copied EAP it worked. This was because ibm-application-bnd.xmi was present and the admin console also showed All authenticated? checked.

This is a hack, is there a way to actually create a Enterprise Application Project and add the modules in and yet make the security work ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic