[
https://issues.jboss.org/browse/WFLY-8731?page=com.atlassian.jira.plugin....
]
Archimedes Trajano commented on WFLY-8731:
------------------------------------------
Also looking at your unit test, can you verify that the SimpleStatefulSessionBean that was
injected in
https://github.com/wildfly/wildfly/blob/master/testsuite/integration/basi...
is actually an EJB and not a "normal class" that just got injected because they
are being put in the same class loader.
I see no assertion on the unit test stating that.
In my example with the DAO I explicitly separated the implementation from the interface to
force it to have the EJB class running in a separate class loader.
Unable to inject EJBs into web resources
----------------------------------------
Key: WFLY-8731
URL:
https://issues.jboss.org/browse/WFLY-8731
Project: WildFly
Issue Type: Bug
Components: CDI / Weld, EJB, Web (Undertow)
Affects Versions: 10.0.0.Final
Environment: WildFly 10.0 on Windows 10
Reporter: Archimedes Trajano
Assignee: Stuart Douglas
There's an old bug on
https://issues.jboss.org/browse/JBAS-8818 that talks about this
issue on JBoss, but it still applies on WildFly up until now.
Their comment was based on just WebListener, but I found it applied to the following as
well
* WebServlet
* WebService (code first and contract first)
* JAX-RS paths.
One other thing to note, converting to @EJB from @Inject created another problem, but
I'd rather get @Inject working first.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)