Here is an exception I get when using my java program from a distant machine :
 
java.rmi.ConnectIOException: Exception creating connection to: 1.2.3.1; nested exception is:
        java.net.NoRouteToHostException: Aucun chemin d'acc�s pour atteindre l'h�te cible
java.net.NoRouteToHostException: Aucun chemin d'acc�s pour atteindre l'h�te cible
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:323)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:136)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:123)
        at java.net.Socket.<init>(Socket.java:273)
        at java.net.Socket.<init>(Socket.java:100)
        at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:25)
        at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:120)
        at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:499)
        at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:190)
        at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:174)
        at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:318)
        at ismarttechnology.smartycart.smartycartwebos.subscribe.JOnASSubscribedComponentHome_Stub.create(JOnASSubscribedComponentHome_Stub.java:39) 
 
The Home interface tries to connect to distant localhost (here 1.2.3.1).
In the jndi.properties are the remote IP in description of the java.naming.provider.url parameter...
What did I do wrong ?
Thanx.
 
                    Thomas DANDELOT

Reply via email to