Connection refused to host [rmi] - Java - Programmation
Marsh Posté le 05-03-2006 à 21:09:29
Et bein non, cété ce ptain classpath !
Est-ce possible de régler cette histoire proprement avec Ant ?
Genre ça mais en mieux :
<exec executable="rmiregistry" dir="./build/classes/"/>
Car ça marche pas.
Marsh Posté le 05-03-2006 à 20:27:16
Salut,
J'ai un probleme avec le lancement de mon server :
- Je compile sans souci avec rmic.
- Je lance le rmiregistry sur le port 3000 (sous windows => start rmiregistry 3000)
- Je precise bien l'option -Djava.security.policy=java.policy
- Il trouve bien le stub du server
Mais je me prends :
ServerImpl err: Connection refused to host: 192.168.0.2; nested exception is:
java.net.ConnectException: Connection refused: connect
java.rmi.ConnectException: Connection refused to host: 192.168.0.2; nested excep
tion is:
java.net.ConnectException: Connection refused: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Unknown Source)
at chat.server.RemoteServerImpl.main(RemoteServerImpl.java:40)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown S
ource)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown S
ource)
... 7 more
Une idée ?
PS : C'est ptet mon modem router qui fout le caca
Message édité par Chronoklazm le 05-03-2006 à 20:56:50
---------------
Scheme is a programmable programming language ! I heard it through the grapevine !