Strange issue :-(

I am using:

Sun JDK 1.4.0_01

Windows XP

JBoss 3.2.7

I deployed statelessSession EJB to JBoss 3.2.7

I wrote a simple client application that performs a JNDI lookup for the

bean's home interface

The JNDI lookup (and subsequent cast) results in a "timed out" error message.

The JNDI server is running on localhost, port 8080. The client application

is configured to connect to localhost port 8080.

javax.naming.CommunicationException: Receive timed out. Root exception is java.net.SocketTimeoutException: Receive timed out

at java.net.PlainDatagramSocketImpl.receive(Native Method)

at java.net.DatagramSocket.receive(DatagramSocket.java:670)

at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:919)

at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:997)

at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:436)

at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:429)

at javax.naming.InitialContext.lookup(InitialContext.java:347)

at com.foobar.FooAccessor.createHomeObject(FooAccessor.java:51)

How can I fix this issue?

[1211 byte] By [Novice_inJAVAa] at [2007-11-26 14:41:41]
# 1
Try to upgrade to latest JBoss and see if problem goes away. Your configuration might be invalid or your client tries to connect somewhere else. Try running the client from the same machine where the server runs.
sector_a at 2007-7-8 8:23:06 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...