3 Replies Latest reply on Dec 29, 2005 6:09 PM by Galder Zamarreno

    Not able to lookup the datasource in jboss

    Krishnakumar Menon Newbie

      I have a created a mysql-ds.xml in the deploy directory with JNDi name as MySqlDS.I try to look up the datasource from an application client.
      But i get the following exception.However i am able to lookup a session bean deployed in the same server.

      javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
      at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1058)
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1127)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:478)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
      at javax.naming.InitialContext.lookup(Unknown Source)
      at com.test.TesterClient.main(TesterClient.java:33)
      Caused by: java.net.SocketTimeoutException: Receive timed out
      at java.net.PlainDatagramSocketImpl.receive0(Native Method)
      at java.net.PlainDatagramSocketImpl.receive(Unknown Source)
      at java.net.DatagramSocket.receive(Unknown Source)
      at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1038)
      ... 5 more