0 Replies Latest reply on May 4, 2004 12:21 PM by sumedh

    javax.naming.NameNotFoundException: OracleDS not bound

    sumedh

      Hi guys,

      I'm trying to setup a JNDI connection for my WAR but I'm not being able to do so. Here is what I've done:

      oracle-ds.xml in default/deploy...

      <datasources>
       <local-tx-datasource>
       <jndi-name>OracleDS</jndi-name>
       <connection-url>
       jdbc:oracle:thin:@sumedh:1521:sumedh
       </connection-url>
       <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
       <user-name>system</user-name>
       <password>crap</password>
       <exception-sorter-classname>
       org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter
       </exception-sorter-class-name>
       </local-tx-datasource>
      </datasources>
      


      the web.xml entry in my WAR's WEB-INF...
      <resource-ref>
       <description>crap</description>
       <res-ref-name>jdbc/Test</res-ref-name>
       <res-type>javax.sql.DataSource</res-type>
       <res-auth>Container</res-auth>
      </resource-ref>
      


      and the entry in my jboss-web.xml also in the WAR's WB-INF...
      <resource-ref>
       <res-ref-name>jdbc/Test</res-ref-name>
       <res-type>javax.sql.DataSource</res-type>
       <jndi-name>OracleDS</jndi-name>
      </resource-ref>
      


      I'm getting...
      Unable to get DB connection : javax.naming.NamingException: Could not dereference object {Root exception is javax.naming.NameNotFoundException: OracleDS not bound}
      


      Is there something I'm missing? ...please help me...

      thanks all...
      sumedh