[jboss-jira] [JBoss JIRA] Commented: (EJBTHREE-1866) EJB deployer requires mapped name for SessionContext injection

jaikiran pai (JIRA) jira-events at lists.jboss.org
Thu Jul 9 13:43:29 EDT 2009


    [ https://jira.jboss.org/jira/browse/EJBTHREE-1866?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12475654#action_12475654 ] 

jaikiran pai commented on EJBTHREE-1866:
----------------------------------------

It works fine for me. Can you attach the application which is failing? Also are you packaging any jar containing javax.ejb.* in your application? If yes remove those jars and try it out.

> EJB deployer requires mapped name for SessionContext injection
> --------------------------------------------------------------
>
>                 Key: EJBTHREE-1866
>                 URL: https://jira.jboss.org/jira/browse/EJBTHREE-1866
>             Project: EJB 3.0
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.1.5
>         Environment: JBoss 5.1.0 GA
>            Reporter: Rinat Gareev
>         Attachments: ejb-jar.xml, server.log
>
>
> EJB deployer require mapped name for SessionContext injection
> EJB class:
> @Stateful
> @EJBs
> 		({
> 				@EJB (beanInterface = CoreSecurityFacade.class, beanName = "CoreSecurityFacadeBean",
> 						name = "ejb/CoreSecurityFacade"),
> 				@EJB (beanInterface = CoreApplicationsFacade.class, beanName = "CoreApplicationsFacadeBean",
> 						name = "ejb/CoreApplicationsFacade"),
> 				@EJB (beanInterface = CoreConfigFacade.class, beanName = "CoreConfigFacadeBean",
> 						name = "ejb/CoreConfigFacade")
> 		})
> public class CoreFacadeFactoryBean implements CoreFacadeFactory, Serializable
> {
> 	@Resource
> 	private SessionContext ctx;
> ....content omitted
> }
> Root cause:
> Caused by: java.lang.RuntimeException: You did not specify a @Resource.mappedName() on private javax.ejb.SessionContext rs.diving.ubcc.core.core.core.CoreFacadeFactoryBean.ctx and there is no binding for enc name env/rs.diving.ubcc.core.core.core.CoreFacadeFactoryBean/ctx in XML                                                                                 
>         at org.jboss.injection.ResourceHandler.handlePropertyAnnotation(ResourceHandler.java:684)                                                                                   
>         at org.jboss.injection.ResourceHandler.handleFieldAnnotations(ResourceHandler.java:497)                                                                                     
>         at org.jboss.injection.InjectionUtil.processFieldAnnotations(InjectionUtil.java:160)                                                                                        
>         at org.jboss.injection.InjectionUtil.processAnnotations(InjectionUtil.java:197)                                                                                             
>         at org.jboss.ejb3.EJBContainer.processMetadata(EJBContainer.java:590)                                                                                                       
>         at org.jboss.ejb3.Ejb3Deployment.processEJBContainerMetadata(Ejb3Deployment.java:418)
>         at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:527)
>         ... 35 more

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

        



More information about the jboss-jira mailing list