1 Reply Latest reply on Apr 9, 2002 12:33 AM by David Jencks

    javax.naming.CommunicationException:  Receive timed out.

    Laura Newbie

      I've download and installed jboss-3.0.0beta out of the box. When I deploy my bean and attempt to perform a JNDI lookup on it I recieve the following error (bottom of post).

      Currently my classpath is set to

      blur@seven:~/projects/photoalbum/build$ echo $CLASSPATH
      :/usr/local/j2sdkee1.3/lib/j2ee.jar:/usr/local/junit3.7/junit.jar:/home/blur/lib/postgresql.jar:.:/usr/local/jboss/client/jboss-client.jar:/usr/local/jboss/client/jbosssx-client.jar:/usr/local/jboss/client/jnp-client.jar:/usr/local/jboss/client/jaas.jar:

      Where '.' is the top level heirachy of the classes I'm trying to run.

      The only other odd part I can come up with is that I recieve the following error on server startup for a few of the jar's in the lib/ext dir.

      2002-04-08 18:55:08,138 WARN [org.jboss.deployment.MainDeployer] The manifest e
      ntry in file:/usr/local/jboss-3.0.0beta/lib/ext/castor.jar references URL file:/
      usr/local/jboss-3.0.0beta/lib/ext/jndi.jar, which could not be opened, entry ign
      ored

      However, if I scroll up in the log it indicates that it deployed jndi.jar just fine. The directory has 644 permissions on it, so their should be no problem loading anything as far as I can tell.

      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:820)
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:890)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:356)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:349)
      at javax.naming.InitialContext.lookup(InitialContext.java:347)
      at photoalbum.util.ServiceLocator.getHome(ServiceLocator.java:38)
      at photoalbum.util.test.ServiceLocatorTest.testGetSetEJBHome(ServiceLocatorTest.java:35)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at junit.framework.TestCase.runTest(TestCase.java:166)
      at junit.framework.TestCase.runBare(TestCase.java:140)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:131)
      at junit.framework.TestSuite.runTest(TestSuite.java:173)
      at junit.framework.TestSuite.run(TestSuite.java:168)
      at junit.framework.TestSuite.runTest(TestSuite.java:173)
      at junit.framework.TestSuite.run(TestSuite.java:168)
      at junit.framework.TestSuite.runTest(TestSuite.java:173)
      at junit.framework.TestSuite.run(TestSuite.java:168)
      at junit.swingui.TestRunner$17.run(TestRunner.java:644)