Configuring security-domain causes JBAS014803 Duplicate resource error in EAP 6.3.3

Solution Verified - Updated

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 6.3.3

Issue

  • Configuring security-domain causes JBAS014803 Duplicate resource error.
    Steps to Reproduce:
  1. Start JBoss EAP
  2. Open <Content from localhost is not included.http://localhost:9990/console/App.html#security-domains> from a browser
  3. Add a security domain
  4. Click "View" link of the created security domain
  5. Add an authentication login module (ex. Code: foo, Flag: required)
  6. Add a module option
    "Failed to modify login-modules" 1 was shown in the notification center area. The module option was not added.
1
Failed to modify login-modules

Unexpected HTTP response: 500

Resolution

Update to 6.4.7. It reported as a bug.
<This content is not included.https://bugzilla.redhat.com/show_bug.cgi?id=1272011>

There is a workaround.
After created an authentication login module, go back to Security Domain page then click "View" link and add a module option.

Root Cause

This error happens because boolean variable resourceExists in class AbstractDomainDetailEditor remains false even it added a new authentication login module, therefore, when it adds a new module option, it recreates "authentication=classic" which is already created by adding login module. When you click "Back" and click "View" for selected security domain, it calls method updateDomainSelection() to load sub-elements, and to reset proper resourceExists to true, that's why it allows to create new module option after this aciton

Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.