1 Reply Latest reply on Nov 5, 2013 3:48 AM by Stephen Coy

    metadata-complete="true" web.xml disables @EJB injection

    Philippe Marschall Expert

      I have an EAR with an EJB-JAR and a WAR inside with the dependency defined in the Class-Path manifest header in the WAR. The EJB is defined only using annotations, no ejb-jar.xml. I inject the EJB into a servlet in the WAR using @EJB. When I set metadata-complete="true" in web.xml no injection happens. This is not my understanding of metadata-complete="true" in the web.xml. In my understanding it only disables scanning for thins like @WebServlet, @WebFilter, @WebListener, web-fragments, and so forth. Is this the intended behavior?