[jboss-jira] [JBoss JIRA] (WFLY-8731) Unable to inject EJBs into web resources
Archimedes Trajano (JIRA)
issues at jboss.org
Thu Jun 22 00:20:00 EDT 2017
[ https://issues.jboss.org/browse/WFLY-8731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13425059#comment-13425059 ]
Archimedes Trajano commented on WFLY-8731:
------------------------------------------
This part "Changed the data source to the default datasource" I think is another bug I had noticed where I couldn't change the resource to a mapped resource correctly. For now I'll accept such a change.
For *Removed the <security-constraint> from web.xml (as no login method was configured) * JASPIC is used as per the spec I am allowed to put in a custom JASPIC provider on the application level which is done here https://github.com/trajano/jee/blob/for-JBAS-8818/jee-web/src/main/java/net/trajano/jee/web/JaspicInitializer.java#L41
Since you had removed the security constraint and JASPIC then there will be no credentials going down to the EJB tier.
> 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