title: GlassFish 5.1.0 error because dcs is null
body: <p>Error is:</p>
  <pre><code>Exception in thread &quot;main&quot; java.lang.NullPointerException: Cannot invoke &quot;org.glassfish.hk2.api.DynamicConfigurationService.createDynamicConfiguration()&quot; because &quot;dcs&quot; is null
  at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.initializeServiceLocator(AbstractModulesRegistryImpl.java:128)
  at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.newServiceLocator(AbstractModulesRegistryImpl.java:120)
  at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createServiceLocator(AbstractModulesRegistryImpl.java:194)
  at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createServiceLocator(AbstractModulesRegistryImpl.java:200)
  at com.sun.enterprise.module.single.StaticModulesRegistry.createServiceLocator(StaticModulesRegistry.java:64)
  at com.sun.enterprise.admin.cli.CLIContainer.getServiceLocator(CLIContainer.java:193)
  at com.sun.enterprise.admin.cli.CLIContainer.getLocalCommand(CLIContainer.java:231)
  at com.sun.enterprise.admin.cli.CLICommand.getCommand(CLICommand.java:207)
  at com.sun.enterprise.admin.cli.AdminMain.executeCommand(AdminMain.java:347)
  at com.sun.enterprise.admin.cli.AdminMain.doMain(AdminMain.java:282)
  at org.glassfish.admin.cli.AsadminMain.main(AsadminMain.java:33)
  </code></pre>
  <p>My <code>java -version:</code></p>
  <p><code>java version 16.0.2 -- 2021-07-2020</code></p>
  <p>Project is also using <code>JDK</code> - <code>16.0.2</code></p>
  <p>GlassFish is using <code>JRE:</code> - <code>JDK</code> - <code>16.0.2</code></p>
  <p>I also did this:</p>
  <pre><code>set JAVA_HOME=&quot;C:\Program Files\Java\jdk-16.0.2&quot; 
  set PATH=&quot;%JAVA_HOME%/bin;%PATH%&quot;
  </code></pre>
  <p>What can be problem? GF cant work with this jdk or jre?</p>