0 Replies Latest reply on Jun 23, 2004 1:21 AM by bhargavss

    DataSource problem with JBOSS and Hibernate

    bhargavss Newbie

      Hi,

      I am using JBoss-3.2.1 for deploying my application.
      I have created a datasource named 'WFDS' which connects to a Oracle9i DB. The datasource is deployed correctly and I can see it in the JBOSS console's JNDI tree. But when my session bean tries to access it the following exception occurs. I am using Hibernate 2.1.4 to perform database operations.

      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:671)
      at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:10
      38)
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1158)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:478)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
      at javax.naming.InitialContext.lookup(InitialContext.java:347)
      at net.sf.hibernate.connection.DatasourceConnectionProvider.configure(Da
      tasourceConnectionProvider.java:44)
      at net.sf.hibernate.connection.ConnectionProviderFactory.newConnectionPr
      ovider(ConnectionProviderFactory.java:83)
      at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.ja
      va:64)
      at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1
      132)
      at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.
      java:766)
      at com.wes.dal.DALFactory.bindSessionFactory(DALFact
      ory.java:209)
      at com.wes.dal.DALFactory.Initialize(DALFactory.java
      :186)
      at com.wes.dal.DALFactory.(DALFactory.java:72)

      at com.wes.dal.DALFactory.(DALFactory.java:5
      9)
      at Client.testBean(Client.java:88)
      at Client.main(Client.java:125)

      Any help is appreciated in this regard.
      Thanks in advance.

      Bhargav