jsp服务器联接问题
Exception in thread "main" javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: Exception creating connection to: 218.249.194.208; nested exception is: java.net.NoRouteToHostException: No route to host]
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:722)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at org.jboss.Shutdown.main(Shutdown.java:214)
Caused by: java.rmi.ConnectIOException: Exception creating connection to: 218.249.194.208; nested exception is:
java.net.NoRouteToHostException: No route to host
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:587)
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:625)
... 3 more
Caused by: java.net.NoRouteToHostException: No route to host
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:507)
at java.net.Socket.connect(Socket.java:457)
at java.net.Socket.<init>(Socket.java:365)
at java.net.Socket.<init>(Socket.java:178)
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:569)
... 8 more
请问出现上面问题是怎么回事啊
搜索更多相关主题的帖子:
服务器 jsp 联接
----------------解决方案--------------------------------------------------------
,还不如说以一下你的具体情况!
----------------解决方案--------------------------------------------------------
连接不到218.249.194.208,是不是你的路由没有设置好
一般联到本机的话,用localhost就可以了,IP地址也是192.168.1.x
----------------解决方案--------------------------------------------------------
谢了,我们的工程师解决了
----------------解决方案--------------------------------------------------------
如何解决的?
----------------解决方案--------------------------------------------------------
他做的太快,我不懂也,说是/etc/hosts的文件有错误啥的,和主机名不一样咋
----------------解决方案--------------------------------------------------------