This content has been marked as final.
Show 2 replies
-
1. Re: CDI/EJB Injection in EAR Deployments
gonne Jul 30, 2011 5:39 AM (in response to skroll)I would say you have to add META-INF/beans.xml to your javaee-ejb.jar, otherwise it is not scanned for CDI annotations.
Regards,
Gonne
-
2. Re: CDI/EJB Injection in EAR Deployments
skroll Jul 30, 2011 8:58 AM (in response to gonne)If I add beans.xml to the EJB jar, I get:
javax.servlet.ServletException: java.lang.IllegalStateException: Failed to construct component instance
javax.faces.webapp.FacesServlet.service(FacesServlet.java:325)
org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67)
It's odd because in a plain WAR deployment it works just fine.