getting error when installing Glassfish 5. I have jdk-10.0.2, now I want to know if this is because there is no compatibility between them.
Am running "asadmin start-domain" and then am getting this error:
Exception in thread "main" java.lang.NullPointerException
at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.ini
tializeServiceLocator(AbstractModulesRegistryImpl.java:152)
at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.new
ServiceLocator(AbstractModulesRegistryImpl.java:144)
at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.cre
ateServiceLocator(AbstractModulesRegistryImpl.java:218)
at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.cre
ateServiceLocator(AbstractModulesRegistryImpl.java:224)
at com.sun.enterprise.module.single.StaticModulesRegistry.createServiceL
ocator(StaticModulesRegistry.java:88)
at com.sun.enterprise.admin.cli.CLIContainer.getServiceLocator(CLIContai
ner.java:217)
at com.sun.enterprise.admin.cli.CLIContainer.getLocalCommand(CLIContaine
r.java:255)
at com.sun.enterprise.admin.cli.CLICommand.getCommand(CLICommand.java:23
1)
at com.sun.enterprise.admin.cli.AdminMain.executeCommand(AdminMain.java:
371)
at com.sun.enterprise.admin.cli.AdminMain.doMain(AdminMain.java:306)
at org.glassfish.admin.cli.AsadminMain.main(AsadminMain.java:57)
Thanks for you guide in anticipation
Required JDK Versions GlassFish Server Open Source Edition Release 5.0 requires Oracle JDK 8 Update 144 or later.
Download links are available from the GlassFish Download page. Eclipse GlassFish 6.1 implements the Jakarta EE 9.1 specification (Jakarta EE 9.1 Platform, Jakarta EE 9 Web Profile). Note this release requires JDK 11.
There are several reasons why one should upgrade from Java 8 to Java 11. Applications written in Java 9, 10, and 11 are significantly faster and more secure than previous versions of the language. ZGC and Epsilon garbage collectors have improved Garbage Collection.
"GlassFish 5.1 requires Oracle JDK 8 Update 144 or later."
At the moment GlassFish 5 is not compatible with JDK 9 nor 10. The support for JDK 9 will come with the next update as stated at end of https://blogs.oracle.com/theaquarium/java-ee-8-is-final-and-glassfish-50-is-released
Glassfish has moved to Eclipse: https://projects.eclipse.org/projects/ee4j.glassfish/downloads
It is also Eclipse that Oracle "sold" javaEE to.
But it is still not supporting JDK 9+
Edit: Glassfish 6.0 is out - but it is still only supporting JDK 8
Edit: Glassfish 6.1 is out - and it is now supporting JDK 11
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With