tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: EJBContainerRule
Date Fri, 10 Oct 2014 12:53:56 GMT
Hi

I guess it is "normal" and almost fixed on trunk. You can ignore them
for now. It is due to an internal ejb module where cdi is not
activated but since it sees your test class(es) it see @Inject.


Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau


2014-10-10 14:15 GMT+02:00 Xavier Dury <kalgon@hotmail.com>:
> Hi,
>
> I have been playing with the EJBContainerRule but, in the logs, I always see some warnings
like these:
>
> WARNING - WARN ... EjbModule1458021134: The application [EjbModule1458021134] uses @Inject
but CDI is not enabled. Maybe youd need to add a beans.xml file.
> WARNING - 1 warning for EjbModule(path=EjbModule1458021134)
>
> I put a beans.xml in both src/main/resources/META-INF and src/test/resources/META-INF,
so I don't understand why it's complaining.
>
> If I inject my test with @EJB instead of @Inject then the warnings disappear.
>
> Do I need to do something else?
>
> Thanks,
>
> Xavier
>
>

Mime
View raw message