[jboss-jira] [JBoss JIRA] (WFLY-8731) Unable to inject EJBs into web resources
Stuart Douglas (JIRA)
issues at jboss.org
Wed Jun 21 23:45:00 EDT 2017
[ https://issues.jboss.org/browse/WFLY-8731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13425052#comment-13425052 ]
Stuart Douglas commented on WFLY-8731:
--------------------------------------
When I attempt to deploy your reproducer I see:
Caused by: javax.naming.NameNotFoundException: java:comp/EJBContext
at org.jboss.as.naming.InitialContext$DefaultInitialContext.findContext(InitialContext.java:191)
at org.jboss.as.naming.InitialContext$DefaultInitialContext.lookup(InitialContext.java:235)
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:193)
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:189)
at javax.naming.InitialContext.lookup(InitialContext.java:417)
at javax.naming.InitialContext.lookup(InitialContext.java:417)
at org.jboss.as.weld.services.bootstrap.WeldResourceInjectionServices.resolveResource(WeldResourceInjectionServices.java:223)
... 40 more
> 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)
More information about the jboss-jira
mailing list