Your JBoss Application Server 7 is running However you have not yet added any users to be able to access the admin console


Posted on : Mon, 5th Oct 15 09:34 am UTC
2314 votes

Message at : http://127.0.0.1:9990/error/index.html

Welcome to AS 7

Your JBoss Application Server 7 is running.

However you have not yet added any users to be able to access the admin console.

To add a new user execute the add-user.sh script within the bin folder of your AS 7 installation and enter the requested information.

By default the realm name used by AS 7 is "ManagementRealm" this is already selected by default.

JBoss Application Server admin console error


JBoss Application Server admin console error



Advertisements





If you have just installed and configured JBoss server with your Eclipse IDE and while accessing Admin Console (http://127.0.0.1:9990/console/App.html) you get the above message, then its because you need to create a user for admin using add-user.sh script first to access admin console, lets see the steps to do this,

  1. Open Terminal (Mac OS or Linux system) or Command Prompt (Windows)
  2. Move to bin location : /jboss-as-7.1.1.Final/bin
  3. Now execute : ./add-user.sh command, you would see the following,
    What type of user do you wish to add? 
     a) Management User (mgmt-users.properties) 
     b) Application User (application-users.properties)
    (a): 
  4. Select option a
  5. Enter username and password details :
    Enter the details of the new user to add.
    Realm (ManagementRealm) : 
    Username : admin
    Password : 
    Re-enter Password : 
    The username 'admin' is easy to guess
    Are you sure you want to add user 'admin' yes/no? yes
    About to add user 'admin' for realm 'ManagementRealm'
    Is this correct yes/no? yes
    Added user 'admin' to file '/Users/abc/Setups/jboss-as-7.1.1.Final/standalone/configuration/mgmt-users.properties'
    Added user 'admin' to file '/Users/abc/Setups/jboss-as-7.1.1.Final/domain/configuration/mgmt-users.properties'
    localhost:bin abc$ 
  6. Now try to access admin console : http://127.0.0.1:9990/console/App.html
  7. You would be promoted to enter username and password.
Note : Username and Password cannot be same, you will get * Error * JBAS015238: Username must not match the password. if you do so
Note : If you add username as admin you would get a warning saying The username 'admin' is easy to guess so its better to select some other name.

Code2care's mission is to share varied knowledge in technical and non-technical areas gathered during day-to-day learnings and development activities so that our visitors can leverage this portal to find solutions to their queries without re-inventing the wheel. Technical posts include Learnings, Tutorials, Video Tutorials, Code Snippets, Tips-n-tricks.

Follow us : Facebook - Twitter - Google +