[
https://issues.jboss.org/browse/WFLY-9235?page=com.atlassian.jira.plugin....
]
Stephen Coy updated WFLY-9235:
------------------------------
Description:
The attached web application builds, deploys and runs perfectly.
However, if you remove one of the <env-entry> elements from the web.xml it will
still deploy and run.
The associated injection point is left as null instead of having the deployment fail as
required by the Java EE 7 Spec in "EE.5.2.5 Annotations and Injection", where it
states:
{quote} If the container fails to find a resource needed for injection, initialization of
the class must fail, and the class must not be put into service.{quote}
@Resource injection does not fail in a servlet when the resource is
missing
---------------------------------------------------------------------------
Key: WFLY-9235
URL:
https://issues.jboss.org/browse/WFLY-9235
Project: WildFly
Issue Type: Bug
Reporter: Stephen Coy
Assignee: Jason Greene
Attachments: web45709634.jira.zip
The attached web application builds, deploys and runs perfectly.
However, if you remove one of the <env-entry> elements from the web.xml it will
still deploy and run.
The associated injection point is left as null instead of having the deployment fail as
required by the Java EE 7 Spec in "EE.5.2.5 Annotations and Injection", where it
states:
{quote} If the container fails to find a resource needed for injection, initialization of
the class must fail, and the class must not be put into service.{quote}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)