title: Missing DefaultManagedExecutorService dependency when migrating Wildfly from Java 8 to 11
body: <p>I have the following code that worked fine in Wildfly 18/Java 8:</p>
  <pre><code>@Stateless
  public class FormulaRunBean {
  
      @Resource
      private ManagedExecutorService executor;
  
      // ........
  
  }
  </code></pre>
  <p>When I switched to Wildfly 20/Java 11, I get the following error when I run Wildfly (no compilation issues).
  Apparently it cannot find <code>ManagedExecutorService</code>:</p>
  <blockquote>
  <p>WFLYCTL0184:    New missing/unsatisfied dependencies:
  service jboss.naming.context.java.comp.&quot;visualbank-2.0&quot;.&quot;visualcode-ejb-2.0&quot;.FormulaRunBean.<strong>DefaultManagedExecutorService</strong> (missing) dependents: [service
  jboss.naming.context.java.comp.&quot;visualcode-2.0&quot;.&quot;visualcode-ejb-2.0&quot;.FormulaRunBean.env.&quot;visualcode.ejb.bi.ds.formula.run.FormulaRunBean&quot;.<strong>executor</strong>]
  WFLYCTL0448: 747 additional services are down due to their
  dependencies being missing or failed</p>
  </blockquote>
  <p>How to fix this? Is this a Java 11 issue or something else?</p>