wildfly - accessing the admin console

Viewed 12425

I'm new to wildfly and am following the documentation on how to get everything set up. I've added a user by running the add-user.bat script, but the administration console page is still telling me I haven't - even though trying to re-add the same user results in the cmd line telling me that the user already exists.

enter image description here

The wildfly documentation, and other guides, make it out to be simple : I'm not sure what I could possibly have missed. I set up the user as a management user, didn't make them belong to any groups, didn't change the realm and answered no to the last question I don't understand.

I also restarted Wildfly and my PC.

Is there any file I should look in to see if the user is correctly set up?

I assume it's mgmt-users.properties - but the user doesn't exist in that file.

Any help would be appreciated!

4 Answers

Something else to be aware of if anyone runs into this. By default, the script assumes your deployment folder is named 'standalone'. If you have renamed this folder, the user will get created but the changes will not actually get applied to the server.

To fix this, simply open up the add-user script in a text editor and look for a commented out line that looks like

#JAVA_OPTS="$JAVA_OPTS -Djboss.server.config.user.dir=../standalone/configuration -Djboss.domain.config.user.dir=../domain/configuration"

Uncomment that line and change the path to match your directory name.

Related