users@glassfish.java.net

Re: JConsole

From: Kenneth Clark <kenneth_at_rabiddog.co.za>
Date: Fri, 16 Feb 2007 15:01:59 +0200

OKay here we go. JConsole spat this at me

java.rmi.ConnectException: Connection refused to host: 127.0.1.1; nested
exception is:
    java.net.ConnectException: Connection refused: connect
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
    at
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:110)
    at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown
Source)
    at
javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2309)
    at
javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:277)
    at sun.tools.jconsole.ProxyClient.tryConnect(ProxyClient.java:359)
    at sun.tools.jconsole.ProxyClient.connect(ProxyClient.java:297)
    at sun.tools.jconsole.VMPanel$2.run(VMPanel.java:279)
Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:519)
    at java.net.Socket.connect(Socket.java:469)
    at java.net.Socket.<init>(Socket.java:366)
    at java.net.Socket.<init>(Socket.java:179)
    at
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
    at
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
    ... 9 more

I have added the entry
name.domain.com ipaddress
in my hosts file

Kenneth Clark
Developer / Analyst

Rabid Dog Laboratories ™
Putting the art back into development

*tel:* +27 11 475 7409
*mobile:* +27 82 500 5090
*e-mail:* kenneth_at_rabiddog.co.za
*website:* http://www.rabiddog.co.za/


sankara rao bhogi wrote:
> ken,
>
> I have the same OS configuration and it works for me. Could you please
> make sure your jmx connector security is not enabled in the domain.xml.
>
> service:jmx:rmi:///jndi/rmi://blr-dhcp-229-92:8686/jmxrmi
> <jmx-connector accept-all="false" address="0.0.0.0"
> auth-realm-name="admin-realm" enabled="true" name="system" port="8686"
> protocol="rmi_jrmp" security-enabled="false"> <!-- security-enabled
> should be false -->
>
> I tried both from 'Remote' and 'Advanced' tabs of jconsole.
>
> From Advanced tab, enter the URL as
> "service:jmx:rmi:///jndi/rmi://hostname:8686/jmxrmi" , which is also
> displayed at the server startup time (replace hostname with your
> hostname) and give the username and password.
>
> regards
> sankar
>
> Kenneth Clark wrote:
>> OS
>> Ubuntu Server 6.10
>> Kernel 2.6.17-10
>>
>> Sun J5EE SDK (not sure of what build of glassfish that is)
>>
>> I cannot for the life of me connect to the server on 8686. The server
>> is listening there as I can telnet but the jconsole connection fails.
>> Is there anyway to debug what the heck is going on?
>>
>> thanks
>> --
>> Kenneth Clark
>> Developer / Analyst
>>
>> Rabid Dog Laboratories ™
>> Putting the art back into development
>>
>> *tel:* +27 11 475 7409
>> *mobile:* +27 82 500 5090
>> *e-mail:* kenneth_at_rabiddog.co.za
>> *website:* http://www.rabiddog.co.za/
>
>