wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes Unable to login to the jboss console Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Unable to login to the jboss console" Watch "Unable to login to the jboss console" New topic
Author

Unable to login to the jboss console

Jeevan Reddy
Ranch Hand

Joined: Nov 10, 2009
Posts: 142
Hi,

I have installed jboss-eap-4.3 and running the default server with JDK5.0_11.
Server starts without errors with the command run.sh -c default.

When I attempt to to view JBoss Web Console in http://localhost:9080/, it asks for password.
I tried admin/admin but it doesn't work.

Looked at the properties files in conf\props, and added a user user1/user1 in jmx-console-users.properties. And restarted the server.
I still can not login to the server.

Please help


SCJP 1.6 (94%)
http://faq.javaranch.com/java/JspFaq
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

http://www.techienuggets.com/Detail?tx=9

5. While you are in directory make copies of the two jmx-console properties files and call them web-console-roles.properties
and web-console-users.prperties respectively.
6. The property files for web-console currently exist under \server\default\deploy\management\console-mgr.sar\web-console.war\WEB-INF\classes.
I would rename these files.
7. edit \server\default\conf\login-config.xml

<application-policy name = "web-console">
<authentication>
<login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
flag = "required">
<module-option name="usersProperties">props/web-console-users.properties</module-option> <module-option name="rolesProperties">props/web-console-roles.properties</module-option> </login-module>
</authentication>
</application-policy

In the above you need to add the props/ because this is missing in the original file.


Regards, Rene Larsen
Dropbox Invite
Jeevan Reddy
Ranch Hand

Joined: Nov 10, 2009
Posts: 142
Larsen, Thanks a lot for the link.
It clearly explains how to enable security for jmx and web consoles, though I had intended to disable security altogether.
Instead I have enabled and I am able to login and view JMX and WEB consoles.

one clarification needed. In the link it is given that by default security is disabled. It doesn't appear like that with - jboss-eap-4.3

But my issue is resolved. Thanks a lot for the help
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9947
    
160

Jeevan Reddy wrote:

one clarification needed. In the link it is given that by default security is disabled. It doesn't appear like that with - jboss-eap-4.3



The community versions of JBoss AS have the default security disabled. You are using EAP version (the enterprise paid version) for which security is enabled by default.

[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to login to the jboss console
 
Similar Threads
jmx-console user ID and password
understand SecureJBoss issue
jboss jmx console problem
how to get administrative form on jboss
How to add JMS configuration in JBOSS 5?