0 Replies Latest reply on Nov 23, 2010 3:15 PM by Daniel Kozlowski

    Remote JMX access to JBoss AS6

    Daniel Kozlowski Newbie

      I am trying to configure remote access to JBoss 6 with JMX. I tried appending various combinations of these attributes in the run.sh file

      .

      #JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
      #JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port=8007"
      #JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.authenticate=false"
      #JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.ssl=false"
      #JAVA_OPTS="$JAVA_OPTS -Djava.rmi.server.hostname=x.x.x.x"

       


      # Use the JBoss MBeanServerBuilder
      #JAVA_OPTS="$JAVA_OPTS -Djboss.platform.mbeanserver"
      #JAVA_OPTS="$JAVA_OPTS -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl"

       

      #Use the jboss logmanager
      #JAVA_OPTS="$JAVA_OPTS -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
      #JAVA_OPTS="$JAVA_OPTS -Dorg.jboss.logging.Logger.pluginClass=org.jboss.logging.logmanager.LoggerPluginImpl"

       

      #JBOSS_CLASSPATH="$JBOSS_CLASSPATH:/opt/jboss/lib/jboss-logmanager.jar"

       

       

      When I enable these options I get this error

       

      15:12:22,415 ERROR [AbstractKernelController] Error installing to Configured: name=LocalNamingBean state=Instantiated: java.lang.RuntimeException: Error configuring property: installJavaComp for LocalNamingBean

       

      15:12:34,445 INFO  [JMXConnector] starting JMXConnector on host 192.168.71.20:1090
      15:12:39,461 ERROR [JMXConnector] couldn't bind legacy adaptor (jmx/invoker/RMIAdaptor or jmx/rmi/RMIAdaptor): javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]

       

      followed by many more

       

      Any help on how to configure a working remote JMX setup