1 Reply Latest reply on May 6, 2003 4:59 PM by Juha Lindfors

    javax.naming.communicatioException

    anand_gr Newbie

      Hi Friends,

      The "jndi.properties" file has been included in the path. But it is giving the same error, to be precise the following is what we receive after running the client
      {
      client:
      [java] Got context
      [java] javax.naming.CommunicationException: Receive timed out [Root excepti
      on is java.io.InterruptedIOException: Receive timed out]
      [java] javax.naming.CommunicationException: Receive timed out. Root except
      ion is java.io.InterruptedIOException: Receive timed out
      [java] at java.net.PlainDatagramSocketImpl.receive(Native Method)
      [java] at java.net.DatagramSocket.receive(DatagramSocket.java:392)
      [java] at org.jnp.interfaces.NamingContext.discoverServer(NamingContext
      .java:1014)
      [java] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:
      1134)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:47
      0)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:46
      3)
      [java] at javax.naming.InitialContext.lookup(InitialContext.java:350)
      [java] at helloworld.HelloWorldClient.main(HelloWorldClient.java:17)
      [echo] classpath =D:\jboss-3.0.7_jakarta-tomcat-4.1.24\client\jboss-j2ee.ja
      r;D:\jboss-3.0.7_jakarta-tomcat-4.1.24\client\jboss-common-client.jar;D:\jboss-3
      .0.7_jakarta-tomcat-4.1.24\server\default\conf;D:\jboss-3.0.7_jakarta-tomcat-4.1
      .24\client\log4j.jar;D:\jboss-3.0.7_jakarta-tomcat-4.1.24\client\jboss-jaas.jar;
      D:\jboss-3.0.7_jakarta-tomcat-4.1.24\client\jbosssx-client.jar;D:\jboss-3.0.7_ja
      karta-tomcat-4.1.24\client\jboss-client.jar;D:\jboss-3.0.7_jakarta-tomcat-4.1.24
      \client\jnp-client.jar;D:\jboss-3.0.7_jakarta-tomcat-4.1.24\client\jnet.jar;D:\j
      dk1.3\lib\tools.jar;F:\HelloWorld;D:\JBOSS\jboss-3.0.6\
      server\default\conf;

      BUILD SUCCESSFUL
      }

      please provide me a workaround for this
      Thanx