Until recently, the wildfly admin panel started up without any problems, but now, when accessing via localhost: 9990, the "Connect to Management Interface" panel pops out, which presents an empty list of interfaces and the ability to add something here. Unfortunately, I can not attach a screenshot.

It is not entirely clear why suddenly I am not allowed into the admin panel + what kind of interface?

I tried to add an interface with the following parameters:

  • name: management
  • Scheme: http
  • Hostname: 127.0.0.1
  • Port: 9990

but there is an error: "The management interface doesn’t respond, please make sure you’re configured."

At the same time I am authorized, the server is working, there is nothing criminal in the logs.

When accessing http 127.0.0.1:9990/management I get:

{ «outcome» : «failed», «failure-description» : «WFLYCTL0313: Unauthorized to execute operation 'read-resource' for resource '[]' — \»WFLYCTL0332: Permission denied\»», «rolled-back» : true } 
  • Reinstalled the server, the problem is gone. However, what is the reason - I do not know yet. - well

2 answers 2

The problem was access rights. WildFly, in contrast to JBoss, supports 2 schemes for ensuring the rights of users in the admin panel:

  • Simple - similar to JBoss. Any admin has unlimited rights.
  • RBAC (Role Based Access Control) - allows, respectively, to differentiate access to the admin panel.

By default, when installing the server, the access parameter is set to Simple and is located here:

 {wildfly}\standalone\configuration\standalone.xml {wildfly}\domain\configuration\domain.xml <management> ... <access-control provider="simple"> <role-mapping> <role name="SuperUser"> <include> <user name="$local"/> </include> </role> </role-mapping> </access-control> </management> 

To set RBAC, the provider field must be changed to "rbac". In my case, respectively, it was necessary to change rbac back to simple. Probably somewhere I previously nakhimichil with rights.

More details on the docks: https://docs.jboss.org/author/display/WFLY10/RBAC

    Maybe you just needed to add user.

    After installing the server, you need to run the add_user.sh script in the wildfly / bin folder.

    Then you need to follow the instructions and create a user under which you can enter the admin panel.