[jboss-user] Exception

semwal pankaj email.semwal at gmail.com
Wed Oct 8 00:05:23 EDT 2008


Hi,

               I am getting the following exception while i am running my
client.java file.Me using ejb2.0 and jboss4.0 wid MYECLIPSE ID 6

Exception in thread "main" javax.naming.CommunicationException: Could not
obtain connection to any of these urls:  jnp://localhost:2008 and discovery
failed with error: javax.naming.CommunicationException: Receive timed out
[Root exception is java.net.SocketTimeoutException: Receive timed out] [Root
exception is javax.naming.CommunicationException: Failed to connect to
server jnp:1099 [Root exception is javax.naming.ServiceUnavailableException:
Failed to connect to server jnp:1099 [Root exception is
java.net.UnknownHostException: jnp: jnp]]]
    at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1562)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:634)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
    at javax.naming.InitialContext.lookup(Unknown Source)
    at s.Client.main(Client.java:24)
Caused by: javax.naming.CommunicationException: Failed to connect to server
jnp:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed
to connect to server jnp:1099 [Root exception is
java.net.UnknownHostException: jnp: jnp]]
    at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:274)
    at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1533)
    ... 4 more
Caused by: javax.naming.ServiceUnavailableException: Failed to connect to
server jnp:1099 [Root exception is java.net.UnknownHostException: jnp: jnp]
    at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:248)
    ... 5 more
Caused by: java.net.UnknownHostException: jnp: jnp
    at java.net.InetAddress.getAllByName0(Unknown Source)
    at java.net.InetAddress.getAllByName0(Unknown Source)
    at java.net.InetAddress.getAllByName(Unknown Source)
    at java.net.InetAddress.getByName(Unknown Source)
    at
org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:76)
    at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:244)
    ... 5 more

plz help


Thankx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20081008/155dca4c/attachment.html 


More information about the jboss-user mailing list