Why do I get a "No InjectionCallbackStack defined for domain for EJB3 Bean" error?
Issue
- I'm migrating an JBoss 4.3 EAP CP08 application to JBoss 5.1.0 EAP. I'm getting "EJBTHREE-2020: No InjectionCallbackStack defined for domain" on one of the JBoss-WS services. What is the problem here?
- The application contains a domain-aop.xml which defines the AOP domain "Strictly Pooled Stateless Bean", which the EJB is configured to use by the jboss.xml
<jboss xmlns="http://www.jboss.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee
http://www.jboss.org/j2ee/schema/jboss_5_0.xsd"
version="5.0">
<enterprise-beans>
<session>
<ejb-name>HelloBean</ejb-name>
<aop-domain-name>Strictly Pooled Stateless Bean</aop-domain-name>
</session>
</enterprise-beans>
</jboss>
- We are facing below issue while deploying an ejb3 :
org.jboss.deployers.spi.DeploymentException: Error deploying example-ejb.jar: EJBTHREE-2020: No InjectionCallbackStack defined for domain org.jboss.aop.Domain@52ded2 of jboss.j2ee:ear=example.ear,jar=example-ejb.jar,name=ExampleBean,service=EJB3
at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:196)
...
Caused by: java.lang.IllegalStateException: EJBTHREE-2020: No InjectionCallbackStack defined for domain org.jboss.aop.Domain@52ded2 of jboss.j2ee:ear=example.ear,jar=example-ejb.jar,name=ExampleBean,service=EJB3
at org.jboss.ejb3.EJBContainer.<init>(EJBContainer.java:283)
...
Environment
- JBoss Enterprise Application Platform (EAP) 5.1.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
