hi guys
iam facing a problem while working on a rmi sample
when i start my server i getting this exception
javax.naming.CommunicationException: Could not obtain connection to any of these
urls:
rmi://127.1.1.14:1099 and discovery failed with error: javax.naming.Commu
nicationException: Receive timed out [Root exception is java.net.SocketTimeoutEx
ception: Receive timed out] [Root exception is javax.naming.CommunicationExcepti
on: Failed to connect to server rmi:1099 [Root exception is javax.naming.Service
UnavailableException: Failed to connect to server rmi:1099 [Root exception is ja
va.net.UnknownHostException: rmi]]]
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1414)
at org.jnp.interfaces.NamingContext.bind(NamingContext.java:538)
at org.jnp.interfaces.NamingContext.bind(NamingContext.java:531)
at javax.naming.InitialContext.bind(InitialContext.java:400)
at mathserver.main(mathserver.java:34)
Caused by: javax.naming.CommunicationException: Failed to connect to server rmi:
1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to conn
ect to server rmi:1099 [Root exception is java.net.UnknownHostException: rmi]]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:269)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1385)
... 4 more
Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server
rmi:1099 [Root exception is java.net.UnknownHostException: rmi]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:243)
... 5 more
Caused by: java.net.UnknownHostException: rmi
at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:849)
at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1200)
at java.net.InetAddress.getAllByName0(InetAddress.java:1153)
at java.net.InetAddress.getAllByName(InetAddress.java:1083)
at java.net.InetAddress.getAllByName(InetAddress.java:1019)
at java.net.InetAddress.getByName(InetAddress.java:969)
at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory
.java:76)
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:239)
... 5 more
also please conform me that to
run JNDI service i have to run any webserver like
weblogic,jboss, looking for your replies
[ April 03, 2008: Message edited by: Amirtharaj Chinnaraj ]