[jboss-user] [JNDI/Naming/Network] - spring 2.5.6/jboss4.2.3 JNDI nested exception is javax.namin

surjitbains do-not-reply at jboss.com
Tue Mar 3 11:25:26 EST 2009


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....? 

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214613#4214613

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214613



More information about the jboss-user mailing list