]
Rinat Gareev updated EJBTHREE-1866:
-----------------------------------
Attachment: server.log
server.log content for EAR deploying time
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: 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: