2 Replies Latest reply on Mar 20, 2003 4:24 AM by coolseb

    Problem with InitialContext

    coolseb Newbie

      Hi everybody,

      I have made a stateless Session bean, that I have deployed in JBOSS3.0.4.
      The JNDI name is stored in "/Calc" (is it normal?)

      My client is a standalone java application.
      After having added all jars of the Jboss client, I run the it and always get a naming Exception

      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:953)
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1040)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:450)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:443)
      at javax.naming.InitialContext.lookup(InitialContext.java:347)
      at CalcClient.main(Unknown Sourc

      My jndi.properties file:
      java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
      java.naming.provider.url=jnp://localhost:1099
      java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
      jnp.socketFactory=org.jnp.interface.TimedSocketFactory
      jnp.timeout=0
      jnp.sotimeout=0
      Could anyone help me ??
      I think that is a pb of configuration of JBOSS