How to set up a admin user in JBoss 4.2?
Hello!I got a task on my desk to verify if an app could be run in a JBoss 4.2. To be able to perfom it, it look like I need to have an admin user to access my "JBoss Web Console".
To server seems to start well, but when I try to enter the admin "JBoss Web Console" it of course ask for a user and an password in a popup on my win xp os.
I guess I need to set up such a user, but I can not find out how.
In the file:
server\default\conf\login-config.xml
...it looks like the server looks for a user at:
<application-policy name = "web-console">
<authentication>
<login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
flag = "required">
<module-option name="usersProperties">web-console-users.properties</module-option>
<module-option name="rolesProperties">web-console-roles.properties</module-option>
</login-module>
</authentication>
</application-policy>
I copied the following files:
server\default\conf\props\jmx-console-roles.properties
server\default\conf\props\jmx-console-users.properties
... to ...
server\default\conf\web-console-roles.properties
(admin=JBossAdmin,HttpInvoker)
server\default\conf\web-console-users.properties
(admin=admin)
I restarted the server but I can not login as:
user:admin
password:admin
If any one see what I have miss please let me know!
Best regards
Fredrik
