geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Viet Hung Nguyen (JIRA)" <>
Subject [jira] Created: (GERONIMO-3548) unable to inject DataSource into EJB using @Resource
Date Tue, 23 Oct 2007 21:36:50 GMT
unable to inject DataSource into EJB using @Resource

                 Key: GERONIMO-3548
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: OpenEJB
    Affects Versions: 2.1
         Environment: windows
            Reporter: Viet Hung Nguyen

I have a DataSource that I am deploying along with my EAR. I tried to inject this DataSource
into my EJB code with the following snippet:

@Resource(name="ActiveDS") private DataSource ds;

However, I get the following warning:

[INFO] 17:29:18,953 WARN  [ResourceRefBuilder] Failed to build reference to resource reference
[] defined in plan file, reason - corresponding entry in deployment descriptor missing.

The data source is not injected properly. I did a simple check to see if my 'ds' was null,
and it was.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message