Confusing Log Message on CDI Bean Archives

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Confusing Log Message on CDI Bean Archives

exabrial12
Jan 01, 2019 12:16:25 PM org.apache.openejb.cdi.CdiScanner handleBda
INFO: Using annotated mode for
jar:file:/Users/jonathan.fisher/servers/apache-tomee-plume-7.0.5.xxx.5/wtpwebapps/invocation-timer-app/WEB-INF/lib/invocation-timer-model-1.0.2-SNAPSHOT.jar!/META-INF/beans.xml
looking all classes to find CDI beans, maybe think to add a beans.xml if not
there or add the jar to exclusions.list

So I thought this message was interesting. The beans.xml in that archive is
set to annotated discovery only, yet the log message says it's looking at
all classes and warns about a missing beans.xml. Is this a known issue or
just maybe a poorly worded log message?



--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Dev-f982480.html
Reply | Threaded
Open this post in threaded view
|

Re: Confusing Log Message on CDI Bean Archives

Roberto Cortez
Hi Jon,

I think what the message is trying to say is that since you have your beans.xml set to annotated, all classes in the jar need to be scanned to find the CDI Beans.

> On 1 Jan 2019, at 18:21, exabrial12 <[hidden email]> wrote:
>
> Jan 01, 2019 12:16:25 PM org.apache.openejb.cdi.CdiScanner handleBda
> INFO: Using annotated mode for
> jar:file:/Users/jonathan.fisher/servers/apache-tomee-plume-7.0.5.xxx.5/wtpwebapps/invocation-timer-app/WEB-INF/lib/invocation-timer-model-1.0.2-SNAPSHOT.jar!/META-INF/beans.xml
> looking all classes to find CDI beans, maybe think to add a beans.xml if not
> there or add the jar to exclusions.list
>
> So I thought this message was interesting. The beans.xml in that archive is
> set to annotated discovery only, yet the log message says it's looking at
> all classes and warns about a missing beans.xml. Is this a known issue or
> just maybe a poorly worded log message?
>
>
>
> --
> Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Dev-f982480.html