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

Rinat Gareev (JIRA) jira-events at lists.jboss.org
Thu Jul 9 12:20:40 EDT 2009


EJB deployer require 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
            Reporter: Rinat Gareev


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