java -jar modules/glassfish.jar
Allow it to start. You will see a message like following in the console:
Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl@747e2f as OSGi service registration:
Now 'Ctrl C' or Kill it. You will notice the following message in the console:
Exception: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread "GlassFish Shutdown Hook"
This didn't use to happen.