Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.3-incubating
-
None
Description
2013-04-19 12:00:17,102 [http-bio-8080-exec-5]: local 4F6067CAAC93376AC5A451C98CAF289D WARN provider.BeanProvider - BeanProvider shall not be used to create @Dependent scoped beans. Bean: MessageContext, Name:null, WebBeans Type:PRODUCERMETHOD, API Types:[org.apache.deltaspike.core.api.message.MessageContext,java.lang.Object], Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]
in our project with a couple of request scoped beans that have messages injected, this log is produced once per injection point per request (which equals to quite a bit of spam). The same log is also visible when running the Deltaspike tests.
After some code reading it seems to me that the entry is caused by the following method:
org.apache.deltaspike.core.impl.message.MessageContextProducer#createDefaultMessageContext
and might only appear when ProjectStage is set to Development or UnitTest
see:
org.apache.deltaspike.core.api.provider.BeanProvider#logWarningIfDependent