[jbosstools-issues] [JBoss JIRA] Updated: (JBIDE-9401) No beans eligible for injection warning for Converstaion

Alexey Kazakov (JIRA) jira-events at lists.jboss.org
Mon Jul 25 13:45:23 EDT 2011


     [ https://issues.jboss.org/browse/JBIDE-9401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Kazakov updated JBIDE-9401:
----------------------------------

    Workaround Description:   (was: This bean is available for injection in JBT if you have weld jars in the project classpath since there is org.jboss.weld.context.conversation.ConversationImpl bean which implements javax.enterprise.context.Conversation
But we should provide bean a built-in bean with bean type Conversation, scope @RequestScoped, and qualifier @Default, named javax.enterprise.context.conversation regardless of project classpath and CDI implementation used in the project.
See JSR-299:
{quote}
6.7.5. The Conversation interface
The container provides a built-in bean with bean type Conversation, scope @RequestScoped, and qualifier @Default,
named javax.enterprise.context.conversation.
{quote})


This bean is available for injection in JBT if you have weld jars in the project classpath since there is org.jboss.weld.context.conversation.ConversationImpl bean which implements javax.enterprise.context.Conversation
But we should provide bean a built-in bean with bean type Conversation, scope @RequestScoped, and qualifier @Default, named javax.enterprise.context.conversation regardless of project classpath and CDI implementation used in the project.
See JSR-299:

6.7.5. The Conversation interface
The container provides a built-in bean with bean type Conversation, scope @RequestScoped, and qualifier @Default,
named javax.enterprise.context.conversation.

> No beans eligible for injection warning for Converstaion
> --------------------------------------------------------
>
>                 Key: JBIDE-9401
>                 URL: https://issues.jboss.org/browse/JBIDE-9401
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: cdi (jsr-299)
>    Affects Versions: 3.3.0.M2
>            Reporter: Cody Lerum
>            Assignee: Viacheslav Kabanovich
>             Fix For: 3.3.0.M3
>
>
> Tooling is showing a "No bean is eligible for injection to the injection point [JSR-299 §5.2.1]" warning when 
> @Inject 
> private Conversation converstation;
> Conversation is javax.enterprise.context.Conversation;

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the jbosstools-issues mailing list