Detailed explanation of JBoss configuration under Windows

Source: Internet
Author: User
Tags auth resource jboss

JBoss Configuration

User name and password settings for 1.jmx-console logins

By default access Http://localhost:8080/jmx-console can browse JBoss deployment management of some information, do not need to enter a username and password, use a bit of security risks. Below we configure JBoss for this issue so that access Jmx-console must also know the username and password to access it. The JBoss configuration steps are as follows:

1 Find JBoss installation directory/server/default/deploy/jmx-console.war/web-inf/jboss-web.xml file, remove <security-domain>java:/ Jaas/jmx-console</security-domain> 's comment. The contents of the modified file are:

<jboss-web> 
<!--uncomment the Security-domain to enable security. You'll 
need to edit the htmladaptor login configuration to setup the 
login modules used to authe Ntication users.--> 
<security-domain>java:/jaas/jmx-console</security-domain> 
</ Jboss-web>

2 Modify and I) in the Jboss-web.xml peer directory of the Web.xml file, find the <security-constraint/> node, remove its comments, the modified part of the content is:

<!--A security constraint which restricts access to the HTML JMX console to users with the 
jbossadmin.   Edit the roles to what your want and 
uncomment the Web-inf/jboss-web.xml/security-domain element to enable 
Secured access to the HTML JMX console.--> 
<security-constraint> 
<web-resource-collection& Gt 
<web-resource-name>HtmlAdaptor</web-resource-name> 
<description>an Example Secur  ity config that is allows users with the 
jbossadmin to access the HTML JMX console Web application 
</description> 
<url-pattern>/*</url-pattern> 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.