This behavior is due to the GlassFishBranding class not being able to find the "BrandingVersion" resource bundle. It does the following:
vRes = (PropertyResourceBundle) PropertyResourceBundle.getBundle("BrandingVersion");
however, a MissingResourceException is thrown, even though the BrandingVersion.properties file exists within the branding-fragment.jar file that is shipped with OGS.
The reason that the bundle is not found is a mismatch in the OSGi data between the branding.jar file and the branding-fragment.jar file.
The branding-fragement.jar file has:
but the bundle symbolic name of the branding.jar file has been changed to org.glassfish.main.core.branding in the 3.1.2 release.
The Fragment-Host (defined in osgi.bundle) has to be changed to match that of branding.jar.