[arquillian-issues] [JBoss JIRA] Commented: (ARQ-252) Unhelpful error message - Skipping CDI injections. Either beans.xml is not present or the BeanManager could not be located in JNDI.

Aslak Knutsen (JIRA) jira-events at lists.jboss.org
Thu Aug 12 09:45:49 EDT 2010


    [ https://jira.jboss.org/browse/ARQ-252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12544568#action_12544568 ] 

Aslak Knutsen commented on ARQ-252:
-----------------------------------

It's a warning, not a error. 

The Warning comes when the CDIInjectionEnricher run and can't find the BeanManager in jndi which is a requirement for it to do anything at all. 

The reasons for not finding it are either:
 - no beans.xml in the deployment so the BeanManager is never created by the Container. Maybe this is not a Bean Archive at all, or you forgot to add it.
- The Container binds the BeanManager in a non spec compliant location.

Which is unknown to the CDIInjectionEnricher at the time it executes. For EE6 containers, CDIInjectionEnricher always run.

I agree the message is a bit confusing. 



> Unhelpful error message - Skipping CDI injections. Either beans.xml is not present or the BeanManager could not be located in JNDI.
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ARQ-252
>                 URL: https://jira.jboss.org/browse/ARQ-252
>             Project: Arquillian
>          Issue Type: Bug
>          Components: Tomcat Containers
>    Affects Versions: 1.0.0.Alpha3
>            Reporter: Pete Muir
>
> Would be nice if it said *which* was the problem ;-)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the arquillian-issues mailing list