[ https://issues.apache.org/jira/browse/OPENEJB-2093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13994988#comment-13994988 ]
Xavier Dury commented on OPENEJB-2093: -------------------------------------- Ok, I understand a class must be managed to have its @Resouce's injected but I thought @Classes was there only to add other managed classes to the module. I didn't know beans declared in the module wouldn't be automatically managed. Thanks for the clarification. > Testing a WebService through ApplicationComposer may lead to a null > WebServiceContext > ------------------------------------------------------------------------------------- > > Key: OPENEJB-2093 > URL: https://issues.apache.org/jira/browse/OPENEJB-2093 > Project: OpenEJB > Issue Type: Bug > Components: tests > Affects Versions: 4.6.1 > Reporter: Xavier Dury > Assignee: Romain Manni-Bucau > Fix For: 4.6.1 > > Attachments: openejb-2093.zip > > > This bug was really hard to isolate: > A @Stateless @WebService bean deployed through an ApplicationComposer @Module > of type EnterpriseBean|EjbJar|EjbModule will not have its @Resource > WebServiceContext injected IF the @Module is annotated with @Classes (even if > @Classes is empty). > The same @Module without the @Classes will work. It will also work if the > @Module returns Class<?>[] instead. -- This message was sent by Atlassian JIRA (v6.2#6252)