I have a virtual machine with Centos7 in virtual box. I have installed there glassfish 5.0 from here: Full platform - glassfish 5.0. I simply unzipped the folder in /opt. I\
The answer is your version of Java is too new for GlassFish. I already answered this here: https://stackoverflow.com/a/49998266/212224
To stop the java.lang.NoClassDefFoundError
you need to use a version of Java no higher than 8u151
This is due to a change in internal JDK classes which Grizzly uses for HTTP/2.
GlassFish 5.0 does not have the latest version of Grizzly which is compatible with the latest Java 8 updates. If you are using GlassFish 5.0 and see these errors, you have 2 choices:
- Downgrade Java to 8u152 or earlier
- Download the latest GlassFish 5.0.1 nightly, where this should be fixed
Ref: https://github.com/javaee/glassfish/issues/22436#issuecomment-374829430