users@glassfish.java.net

Can't Resolve jndi name... help?

From: <glassfish_at_javadesktop.org>
Date: Mon, 16 Mar 2009 14:44:30 PDT

Getting this, can't figure out why:
Caused by: javax.naming.NameNotFoundException: SimpleUsageTrackingDatasource not found
at com.sun.enterprise.naming.TransientContext.doLooku p(TransientContext.java:216)
at com.sun.enterprise.naming.TransientContext.lookup( TransientContext.java:188)
at com.sun.enterprise.naming.SerialContextProviderImp l.lookup(SerialContextPr

here is my spring config xml:
<jee:jndi-lookup id="SimpleUsageTrackingDatasource"
jndi-name="SimpleUsageTrackingDatasource"
resource-ref="false" />

here is my web.xml:
<resource-ref>
<res-ref-name>SimpleUsageTrackingDatasource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>

and here is my sun-web.xml in my web-inf dir:
<sun-web-app error-url="">
<resource-ref>
<res-ref-name>SimpleUsageTrackingDatasource</res-ref-name>
<jndi-name>jdbc/SimpleUsageTrackingDatasource</jndi-name>
</resource-ref>

And finally, yes, I do have a datasource named visible jdbc/SimpleUsageTrackingDatasource in the JNDI browser of Glassfish. I'm completely stuck. Why can't I ever resolve this name?
[Message sent by forum member 'cj91' (cj91)]

http://forums.java.net/jive/thread.jspa?messageID=337302