1 Reply Latest reply on Jun 4, 2005 11:59 AM by norman.richards

    javax.naming.NameNotFoundException: jdbc not bound

      Hi all,

      I try to run my application on JBoss 4.0.1.
      All the time i get exception as the following :

      javax.naming.NameNotFoundException: jdbc not bound

      My jboss.xml looks like this :


      <enterprise-beans>
      <resource-ref>
      <res-ref-name>JDBC_TestAppDS</res-ref-name>
      <jndi-name>java:/JDBCApp</jndi-name>
      </resource-ref>
      </enterprise-beans>


      My web.xml looks like this :

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

      My mssql-ds.xml looks like this:

      <local-tx-datasource>
      <jndi-name>JDBCApp</jndi-name>
      <connection-url>jdbc:microsoft:sqlserver://slevi:1433;DatabaseName=bank</connection-url>
      <driver-class>com.microsoft.jdbc.sqlserver.SQLServerDriver</driver-class>
      <user-name>sa</user-name>



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

      </local-tx-datasource>

      Someone can help me, please?