Error when enabling authentication on JMX/Jconsole in JBoss EAP 5.

Solution Unverified - Updated -

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=false to com.sun.management.jmxremote.authenticate=true, the jboss process won't start. No server.log or boot.log is 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
  • OpenJDK 6
  • OpenJDK 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In