users@glassfish.java.net

problem with jdbc resource injection

From: <glassfish_at_javadesktop.org>
Date: Tue, 21 Aug 2007 01:13:23 PDT

hello

i'm trying to inject a jdbc resource in a managed bean's datasource variable:
@Resource (name = "jdbc/ucs", type = javax.sql.DataSource.class, authenticationType = Resource.AuthenticationType.APPLICATION, shareable = true)
DataSource ds;

and getting
com.sun.enterprise.InjectionException: Exception attempting to inject Res-Ref-Env-Property: jdbc/ucs_at_javax.sql.DataSource@ resolved as: jndi: jdbc/ucs_at_res principal: null_at_mail: null
No Runtime properties
Database Vendor : null
Create Tables at Deploy : false
Delete Tables at Undeploy : false into class ser.MBean

error, while ds = (DataSource) new InitialContext().lookup("jdbc/ucs");
work just fine.

where is the bug?
[Message sent by forum member 'dimm' (dimm)]

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