0 Replies Latest reply on Mar 3, 2009 11:25 AM by Surjit Bains

    spring 2.5.6/jboss4.2.3 JNDI nested exception is javax.namin

    Surjit Bains Newbie

      I'm still getting this error with spring 2.5.6/jboss4.2.3

      persistence definition







      jboss-web.xml

      <?xml version="1.0" encoding="UTF-8"?>

      <jboss-web>
      <security-domain>java:/jaas/clients</security-domain>
      <resource-ref>
      <res-ref-name>jdbc/JRWDS</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <jndi-name>java:JRWDS</jndi-name>
      </resource-ref>
      </jboss-web>


      entry in web.xml

      <resource-ref>
      <res-ref-name>jdbc/JRWDS</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
      </resource-ref>



      datasource file mssql-ds.xml in deploy jboss folder



      <local-tx-datasource>
      <jndi-name>JRWDS</jndi-name>
      <connection-url>jdbc:microsoft:sqlserver://xxx</connection-url>
      <driver-class>com.microsoft.sqlserver.jdbc.SQLServerDriver </driver-class>
      <user-name>xxxx</user-name>
      xxxx
      <!-- sql to call when connection is created
      <new-connection-sql>some arbitrary sql</new-connection-sql>
      -->

      <!-- sql to call on an existing pooled connection when it is obtained from pool
      <check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
      -->

      <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->

      <type-mapping>MS SQLSERVER2000</type-mapping>

      </local-tx-datasource>




      the JNDI resource is bound ...
      12:37:24,937 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=JRWDS' to JNDI name 'java:JRWDS'

      but my app deployed apps fails

      nested exception is javax.naming.NameNotFoundException: JNDI object with [java:JRWDS] not found: JNDI implementation returned null

      any clues....?