unable to inject DataSource into EJB using @Resource
----------------------------------------------------
Key: GERONIMO-3548
URL: https://issues.apache.org/jira/browse/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.