[jboss-jira] [JBoss JIRA] (WFLY-3336) Injection of SpringBean into EJB doesn't work if Spring is installed as static module

Tomas Repel (JIRA) issues at jboss.org
Mon May 12 11:54:56 EDT 2014


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

Tomas Repel commented on WFLY-3336:
-----------------------------------

I added a reproducer for this. The application works if Spring jars are bundled withing EAR, but if you install Spring as a static module, the Spring Bean to EJB injection stops working. The NPE is thrown if using the @Autowired beans in EJB.

I suspect the org.springframework.ejb.interceptor.SpringBeanAutowiringInterceptor is not intercepting anything if located inside static module.

> Injection of SpringBean into EJB doesn't work if Spring is installed as static module
> -------------------------------------------------------------------------------------
>
>                 Key: WFLY-3336
>                 URL: https://issues.jboss.org/browse/WFLY-3336
>             Project: WildFly
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: EJB
>    Affects Versions: 8.1.0.CR1
>            Reporter: Tomas Repel
>            Assignee: David Lloyd
>
> If you inject SpringBean into EJB using SpringBeanAutowiringInterceptor and the Spring core jars are available as static module, the injection doesn't work.
> Reproducer:
> https://github.com/trepel/WFLY-3336-Reproducer



--
This message was sent by Atlassian JIRA
(v6.2.3#6260)


More information about the jboss-jira mailing list