title: Global onStart on Play Framework 2.3.7 not working?
body: <p>Sorry if this question turns to be silly, but I simply cannot find my mistake and I checked already plenty of posts here in SO and other sites.
  I have setup a Play 2.3.7 project using Java. I have created a Global.java file in the common package under the app directory. In that file I override onStart (and other hooks) but I don't get them to work. They simply do not execute at all. Here's the Global.java file:</p>
  
  <pre><code>package common;
  
  import play.Application;
  import play.GlobalSettings;
  import play.Logger;
  
  public class Global extends GlobalSettings {
  
      @Override
      public void beforeStart(Application application) {
          Logger.error("good bye cruel world");
          super.beforeStart(application);
          throw new RuntimeException("WTF");
      }
  
      @Override
      public void onStart(Application application) {
          Logger.error("good bye cruel world");
          super.onStart(application);
          throw new RuntimeException("WTF");
      }
  
      @Override
      public void onStop(Application application) {
          Logger.error("good bye cruel world");
          super.onStop(application);
          throw new RuntimeException("WTF");
      }
  }
  </code></pre>
  
  <p>And inside the application.conf, here's the relevant part, which is commented by default:</p>
  
  <pre><code># Define the common.Global object class for this application.
  # Default to common.Global in the root package.
  # application.global=common.Global
  </code></pre>
  
  <p>What can be the problem? Thanks.</p>