Jboss Webconsole

Um auf die Webconsole von einem Jboss zu kommen benötigt man einen konfigurierten User.
Die Url selbst ist ganz einfach.

http://ip:port/webconsole

Für den Zugriff muss ein User und ein Passwort definiert sein.

Jboss vor Version 7
Hier ein Beispiel aus einer Umgebung

vim /opt/jboss/jboss-5.1.0.GA/server/default/deploy/management/console-mgr.sar/web-console.war/WEB-INF/classes/web-console-users.properties
# A sample users.properties file for use with the UsersRolesLoginModule
admin=mypassword


Jboss ab Version 7

vim standalone.xml
<management>
        <security-realms>
            <security-realm name="ManagementRealm">
                <authentication>
                    <properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/>
                </authentication>
            </security-realm>
            <security-realm name="ApplicationRealm">
                <authentication>
                    <properties path="application-users.properties" relative-to="jboss.server.config.dir"/>
                </authentication>
            </security-realm>
        </security-realms>
        <management-interfaces>
            <native-interface security-realm="ManagementRealm">
                <socket-binding native="management-native"/>
            </native-interface>
            <http-interface security-realm="ManagementRealm">
                <socket-binding http="management-http"/>
            </http-interface>
        </management-interfaces>
</management>
vim mgmt-users.properties
admin=mypassword

Damit diese Einstellungen ziehen muss der Jboss natürlich neu gestartet werden.