[jboss-jira] [JBoss JIRA] Commented: (AS7-1458) CDI Injections do not work in EAR deployments

Stuart Douglas (JIRA) jira-events at lists.jboss.org
Wed Aug 3 19:58:08 EDT 2011


    [ https://issues.jboss.org/browse/AS7-1458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12618668#comment-12618668 ] 

Stuart Douglas commented on AS7-1458:
-------------------------------------

I added a beans.xml to the EJB jar and it worked as expected. I was testing against AS7 upstream, although I don't think anything has changed that would affect this behaviour. 

> CDI Injections do not work in EAR deployments
> ---------------------------------------------
>
>                 Key: AS7-1458
>                 URL: https://issues.jboss.org/browse/AS7-1458
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: CDI / Weld
>    Affects Versions: 7.0.0.Final
>            Reporter: Scott Kroll
>            Assignee: Stuart Douglas
>             Fix For: 7.0.1.Final
>
>         Attachments: javaee-ear.zip, javaee-war.zip
>
>
> A project with CDI jars in an EAR lib are not being injected into EJBs. However, the exact same project deployed as a standalone WAR, with everything in WEB-INF/lib works properly.
> In the EAR deployment, the EJB's method that calls in the injected bean throws a NullPointerException.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list