Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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