[jboss-user] [Management, JMX/JBoss] - JConsole remote not working with JBoss4.2.2GA

kpandey do-not-reply at jboss.com
Mon Nov 12 21:14:09 EST 2007


I don't know if its related to this http://jira.jboss.com/jira/browse/JBAS-3947
but I see the following issue while trying to connect JConsole (either jdk 5.x or  6.x) remotely to JBoss4.2.2GA

Here's the server configuration in run.sh to use the platform Mbean

  | JAVA_OPTS="$JAVA_OPTS -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl"
  | JAVA_OPTS="$JAVA_OPTS -Djboss.platform.mbeanserver"
  |  JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
  | JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port=12345"
  | JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.authenticate=false"
  | JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.ssl=false"

Here's the trace on JConsole
 


  | Nov 12, 2007 6:09:40 PM RMIConnector connect
  | FINER: [javax.management.remote.rmi.RMIConnector: rmiServer=RMIServerImpl_Stub[UnicastRef [liveRef: [endpoint:[10.0.3.152:42167](remote),objID:[19c91f5a:116368d1bed:-8000, 6476555945438087490]]]]] connecting...
  | Nov 12, 2007 6:09:41 PM RMIConnector connect
  | FINER: [javax.management.remote.rmi.RMIConnector: rmiServer=RMIServerImpl_Stub[UnicastRef [liveRef: [endpoint:[10.0.3.152:42167](remote),objID:[19c91f5a:116368d1bed:-8000, 6476555945438087490]]]]] finding stub...
  | Nov 12, 2007 6:09:41 PM RMIConnector connect
  | FINER: [javax.management.remote.rmi.RMIConnector: rmiServer=RMIServerImpl_Stub[UnicastRef [liveRef: [endpoint:[10.0.3.152:42167](remote),objID:[19c91f5a:116368d1bed:-8000, 6476555945438087490]]]]] connecting stub...
  | Nov 12, 2007 6:09:41 PM RMIConnector connect
  | FINER: [javax.management.remote.rmi.RMIConnector: rmiServer=RMIServerImpl_Stub[UnicastRef [liveRef: [endpoint:[10.0.3.152:42167](remote),objID:[19c91f5a:116368d1bed:-8000, 6476555945438087490]]]]] getting connection...
  | Nov 12, 2007 6:09:42 PM RMIConnector connect
  | FINER: [javax.management.remote.rmi.RMIConnector: rmiServer=RMIServerImpl_Stub[UnicastRef [liveRef: [endpoint:[10.0.3.152:42167](remote),objID:[19c91f5a:116368d1bed:-8000, 6476555945438087490]]]]] getting class loader...
  | Nov 12, 2007 6:09:43 PM RMIConnector connect
  | FINER: [javax.management.remote.rmi.RMIConnector: rmiServer=RMIServerImpl_Stub[UnicastRef [liveRef: [endpoint:[10.0.3.152:42167](remote),objID:[19c91f5a:116368d1bed:-8000, 6476555945438087490]]]]] failed to connect: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: 
  | 	java.net.ConnectException: Connection refused: connect
  | Nov 12, 2007 6:09:43 PM RMIConnector close
  | FINER: [javax.management.remote.rmi.RMIConnector: rmiServer=RMIServerImpl_Stub[UnicastRef [liveRef: [endpoint:[10.0.3.152:42167](remote),objID:[19c91f5a:116368d1bed:-8000, 6476555945438087490]]]]] closing.
  | Nov 12, 2007 6:09:43 PM ClientNotifForwarder terminate
  | FINER: Terminating...
  | Nov 12, 2007 6:09:43 PM RMIConnector close
  | FINER: [javax.management.remote.rmi.RMIConnector: rmiServer=RMIServerImpl_Stub[UnicastRef [liveRef: [endpoint:[10.0.3.152:42167](remote),objID:[19c91f5a:116368d1bed:-8000, 6476555945438087490]]]]] RMI Notification client terminated.
  | Nov 12, 2007 6:09:43 PM ClientCommunicatorAdmin Checker-run
  | FINER: Finished.
  | Nov 12, 2007 6:09:44 PM RMIConnector close
  | FINER: [javax.management.remote.rmi.RMIConnector: rmiServer=RMIServerImpl_Stub[UnicastRef [liveRef: [endpoint:[10.0.3.152:42167](remote),objID:[19c91f5a:116368d1bed:-8000, 6476555945438087490]]]]] Failed to close RMIServer: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: 
  | 	java.net.ConnectException: Connection refused: connect
  | Nov 12, 2007 6:09:44 PM RMIConnector close
  | FINER: [javax.management.remote.rmi.RMIConnector: rmiServer=RMIServerImpl_Stub[UnicastRef [liveRef: [endpoint:[10.0.3.152:42167](remote),objID:[19c91f5a:116368d1bed:-8000, 6476555945438087490]]]]] failed to close: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: 
  | 	java.net.ConnectException: Connection refused: connect
  | 

Note that I am able to open the JConsole from the same box using localhost:12345

Any tips on further troubleshooting would  be greatly appreciated.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103924#4103924

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103924



More information about the jboss-user mailing list