Stefan Strobl created DELTASPIKE-356:
----------------------------------------
Summary: MessageContextProducer causes a ton of log output on each
request
Key: DELTASPIKE-356
URL: https://issues.apache.org/jira/browse/DELTASPIKE-356
Project: DeltaSpike
Issue Type: Bug
Components: I18n-Module
Affects Versions: 0.3-incubating
Reporter: Stefan Strobl
{noformat}
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]
{noformat}
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}}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira