Error when enabling authentication on JMX/Jconsole in JBoss EAP 5.
Issue
- The following options are added to
run.conf:
JAVA_OPTS="$JAVA_OPTS -Djboss.platform.mbeanserver"
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.ssl=false"
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.authenticate=false"
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port=3001"
JAVA_OPTS="$JAVA_OPTS -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl"
- When we try to change
com.sun.management.jmxremote.authenticate=falsetocom.sun.management.jmxremote.authenticate=true, the jboss process won't start. Noserver.logorboot.logis produced and following error is seen on the console :
Error: Password file read access must be restricted: /logiciel/jboss-eap-5.0/jboss-as/server/afdgroup/conf/props/jmxremote.password
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 5.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
