[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Can not get connection to server. Problem establishing s
alexsbe
do-not-reply at jboss.com
Wed Apr 23 08:16:00 EDT 2008
Thanks for your help,
The client is on windows (for test). It will be on a linux System for production.
When I don't specify the option -Djava.rmi.server.hostname=serverIp adress here is the trace I have from the client
javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: fedora.sbe-online.com; nested exception is:
| java.net.ConnectException: Connection refused: connect]
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:780)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
| at javax.naming.InitialContext.lookup(InitialContext.java:351)
| at com.sbe.test.Client.main(Client.java:23)
| Caused by: java.rmi.ConnectException: Connection refused to host: fedora.sbe-online.com; nested exception is:
| java.net.ConnectException: Connection refused: connect
| at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:574)
| at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
| at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
| at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:94)
| at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
| ... 3 more
| 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:193)
| at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
| at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
| at java.net.Socket.connect(Socket.java:507)
| at java.net.Socket.connect(Socket.java:457)
| at java.net.Socket.<init>(Socket.java:365)
| at java.net.Socket.<init>(Socket.java:207)
| at org.jboss.net.sockets.DefaultClientSocketFactory.createSocket(DefaultClientSocketFactory.java:77)
| at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)
| ... 8 more
and with this option I have the other error. I read from a forum that putting this option solve my issue. It did not solve it. I had an other one.
here is the information I have typing the netstat -a command
anonymous wrote : Connexions Internet actives (serveurs et ÃÂÃÂÃÂétablies)
| Proto Recv-Q Send-Q Local Address Foreign Address State
| tcp 0 0 fedora.sbe-online.:fagordnc *:* LISTEN
| tcp 0 0 *:36008 *:* LISTEN
| tcp 0 0 *:8009 *:* LISTEN
| tcp 0 0 *:rmiactivation *:* LISTEN
| tcp 0 0 *:rmiregistry *:* LISTEN
| tcp 0 0 *:sunrpc *:* LISTEN
| tcp 0 0 *:webcache *:* LISTEN
| tcp 0 0 *:us-srv *:* LISTEN
| tcp 0 0 *:48915 *:* LISTEN
| tcp 0 0 *:40344 *:* LISTEN
| tcp 0 0 fedora.sbe-online.com:smtp *:* LISTEN
| tcp 0 0 *:krb524 *:* LISTEN
| tcp 0 0 *:8093 *:* LISTEN
| tcp 0 0 *:upnotifyp *:* LISTEN
| tcp 0 0 *:59613 *:* LISTEN
| tcp 0 0 *:n1-fwp *:* LISTEN
| tcp 0 0 10.107.70.70:51503 10.107.1.10:ncube-lm ESTABLISHED
| tcp 0 0 *:ssh *:* LISTEN
| tcp 0 0 ::ffff:10.107.70.70:ssh ::ffff:10.107:dbcontrol-oms ESTABLISHED
| tcp 0 132 ::ffff:10.107.70.70:ssh ::ffff:10.107:sercomm-wlink ESTABLISHED
| tcp 0 0 ::ffff:10.107.70.70:ssh ::ffff:10.107.20.5:olsv ESTABLISHED
| udp 0 0 *:43907 *:*
| udp 0 0 *:59557 *:*
| udp 0 0 *:940 *:*
| udp 0 0 *:961 *:*
| udp 0 0 *:mdns *:*
| udp 0 0 *:sunrpc *:*
| Sockets du domaine UNIX actives(serveurs et ÃÂÃÂÃÂétablies)
| Proto RefCpt Indicatrs Type Etat I-Node Chemin
| unix 2 [ ACC ] STREAM LISTENING 4476 @/var/run/hald/dbus-hAUCEFLem5
| unix 2 [ ACC ] STREAM LISTENING 4041 /var/run/dbus/system_bus_socket
| unix 2 [ ACC ] STREAM LISTENING 4173 /var/run/acpid.socket
| unix 2 [ ACC ] STREAM LISTENING 4473 @/var/run/hald/dbus-CwaPn6jAVh
| unix 2 [ ACC ] STREAM LISTENING 6060 @/tmp/.X11-unix/X0
| unix 2 [ ] DGRAM 512 @/org/kernel/udev/udevd
| unix 13 [ ] DGRAM 3965 /dev/log
| unix 2 [ ] DGRAM 4498 @/org/freedesktop/hal/udev_event
| unix 2 [ ACC ] STREAM LISTENING 3641 /var/run/rpcbind.sock
| unix 2 [ ACC ] STREAM LISTENING 6008 /var/run/gdm_socket
| unix 2 [ ACC ] STREAM LISTENING 3945 /var/run/pcscd.comm
| unix 2 [ ACC ] STREAM LISTENING 4446 /var/run/avahi-daemon/socket
| unix 2 [ ACC ] STREAM LISTENING 6061 /tmp/.X11-unix/X0
| unix 2 [ ACC ] STREAM LISTENING 4013 /var/run/audispd_events
| unix 2 [ ACC ] STREAM LISTENING 6194 /tmp/orbit-gdm/linc-8d1-0-260b868bdfaac
| unix 2 [ ACC ] STREAM LISTENING 6199 /tmp/orbit-gdm/linc-8cf-0-73485901dff43
| unix 2 [ ACC ] STREAM LISTENING 6210 /tmp/orbit-gdm/linc-8cd-0-1c2d188aeb267
| unix 2 [ ] STREAM CONNECTE 29854
| unix 2 [ ] DGRAM 28814
| unix 3 [ ] STREAM CONNECTE 25936
| unix 3 [ ] STREAM CONNECTE 25935
| unix 3 [ ] STREAM CONNECTE 25934
| unix 3 [ ] STREAM CONNECTE 25933
| unix 3 [ ] STREAM CONNECTE 24660
| unix 3 [ ] STREAM CONNECTE 24659
| unix 3 [ ] STREAM CONNECTE 24658
| unix 3 [ ] STREAM CONNECTE 24657
| unix 3 [ ] STREAM CONNECTE 6223 @/tmp/.X11-unix/X0
| unix 3 [ ] STREAM CONNECTE 6222
| unix 3 [ ] STREAM CONNECTE 6219 /tmp/orbit-gdm/linc-8cd-0-1c2d188aeb267
| unix 3 [ ] STREAM CONNECTE 6212
| unix 3 [ ] STREAM CONNECTE 6209 /tmp/orbit-gdm/linc-8cf-0-73485901dff43
| unix 3 [ ] STREAM CONNECTE 6208
| unix 3 [ ] STREAM CONNECTE 6207 @/tmp/.X11-unix/X0
| unix 3 [ ] STREAM CONNECTE 6206
| unix 3 [ ] STREAM CONNECTE 6202 /tmp/orbit-gdm/linc-8cf-0-73485901dff43
| unix 3 [ ] STREAM CONNECTE 6201
| unix 3 [ ] STREAM CONNECTE 6198 /tmp/orbit-gdm/linc-8d1-0-260b868bdfaac
| unix 3 [ ] STREAM CONNECTE 6197
| unix 3 [ ] STREAM CONNECTE 6158 @/tmp/.X11-unix/X0
| unix 3 [ ] STREAM CONNECTE 6157
| unix 3 [ ] STREAM CONNECTE 6156 @/tmp/.X11-unix/X0
| unix 3 [ ] STREAM CONNECTE 6155
| unix 3 [ ] STREAM CONNECTE 6133 @/tmp/.X11-unix/X0
| unix 3 [ ] STREAM CONNECTE 6132
| unix 3 [ ] STREAM CONNECTE 6097 @/tmp/.X11-unix/X0
| unix 3 [ ] STREAM CONNECTE 6096
| unix 3 [ ] STREAM CONNECTE 6064 /var/run/acpid.socket
| unix 3 [ ] STREAM CONNECTE 6063
| unix 2 [ ] DGRAM 6028
| unix 3 [ ] STREAM CONNECTE 6027 /var/run/pcscd.comm
| unix 3 [ ] STREAM CONNECTE 6026
| unix 3 [ ] STREAM CONNECTE 5196 @/var/run/hald/dbus-CwaPn6jAVh
| unix 3 [ ] STREAM CONNECTE 5195
| unix 3 [ ] STREAM CONNECTE 5194 /var/run/dbus/system_bus_socket
| unix 3 [ ] STREAM CONNECTE 5193
| unix 3 [ ] STREAM CONNECTE 5169 @/var/run/hald/dbus-CwaPn6jAVh
| unix 3 [ ] STREAM CONNECTE 5168
| unix 3 [ ] STREAM CONNECTE 5156 /var/run/dbus/system_bus_socket
| unix 3 [ ] STREAM CONNECTE 5155
| unix 3 [ ] STREAM CONNECTE 4998 /var/run/acpid.socket
| unix 3 [ ] STREAM CONNECTE 4997
| unix 3 [ ] STREAM CONNECTE 4981 @/var/run/hald/dbus-CwaPn6jAVh
| unix 3 [ ] STREAM CONNECTE 4980
| unix 3 [ ] STREAM CONNECTE 4638 @/var/run/hald/dbus-CwaPn6jAVh
| unix 3 [ ] STREAM CONNECTE 4626
| unix 3 [ ] STREAM CONNECTE 4493 @/var/run/hald/dbus-hAUCEFLem5
| unix 3 [ ] STREAM CONNECTE 4492
| unix 3 [ ] STREAM CONNECTE 4475 /var/run/dbus/system_bus_socket
| unix 3 [ ] STREAM CONNECTE 4474
| unix 3 [ ] STREAM CONNECTE 4449 /var/run/dbus/system_bus_socket
| unix 3 [ ] STREAM CONNECTE 4448
| unix 3 [ ] STREAM CONNECTE 4443
| unix 3 [ ] STREAM CONNECTE 4442
| unix 2 [ ] DGRAM 4439
| unix 2 [ ] DGRAM 4389
| unix 3 [ ] STREAM CONNECTE 4367 /var/run/dbus/system_bus_socket
| unix 3 [ ] STREAM CONNECTE 4366
| unix 2 [ ] DGRAM 4346
| unix 2 [ ] DGRAM 4323
| unix 2 [ ] DGRAM 4175
| unix 2 [ ] DGRAM 4107
| unix 3 [ ] STREAM CONNECTE 4045
| unix 3 [ ] STREAM CONNECTE 4044
| unix 2 [ ] DGRAM 4015
| unix 2 [ ] DGRAM 4009
| unix 3 [ ] STREAM CONNECTE 4008
| unix 3 [ ] STREAM CONNECTE 4007
| unix 2 [ ] DGRAM 3978
| unix 3 [ ] STREAM CONNECTE 3826
| unix 3 [ ] STREAM CONNECTE 3825
|
and finally the content of the /etc/hosts file
anonymous wrote : # Do not remove the following line, or various programs
| # that require network functionality will fail.
| 127.0.0.1 fedora.domain fedora localhost.localdomain localhost fedora
| myIp myname
| ::1 localhost6.localdomain6 localhost6
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146140#4146140
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146140
More information about the jboss-user
mailing list