我正在寻找在Java 9上运行Payara 5 Alpha的帮助。博客文章"Payara Server 5 Alpha 2 release is here!"表示它在Java 9上运行payara域,但是我仍然在AbstractModulesRegistryImpl.initializeServiceLocator上获得java.lang.NullPointerException-

C:\payara-5.0.0.Alpha4-20171117.004238-21\payara5\bin>java -version
java version "9.0.1"
Java(TM) SE Runtime Environment (build 9.0.1+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)


C:\payara-5.0.0.Alpha4-20171117.004238-21\payara5\bin>asadmin.bat start-domain payaradomain
Exception in thread "main" java.lang.NullPointerException
        at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.initializeServiceLocator(AbstractModulesRegistryImpl.java:152)
        at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.newServiceLocator(AbstractModulesRegistryImpl.java:144)
        at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createServiceLocator(AbstractModulesRegistryImpl.java:218)
        at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createServiceLocator(AbstractModulesRegistryImpl.java:224)
        at com.sun.enterprise.module.single.StaticModulesRegistry.createServiceLocator(StaticModulesRegistry.java:88)
        at com.sun.enterprise.admin.cli.CLIContainer.getServiceLocator(CLIContainer.java:216)
        at com.sun.enterprise.admin.cli.CLIContainer.getLocalCommand(CLIContainer.java:254)
        at com.sun.enterprise.admin.cli.CLICommand.getCommand(CLICommand.java:231)
        at com.sun.enterprise.admin.cli.AdminMain.executeCommand(AdminMain.java:370)
        at com.sun.enterprise.admin.cli.AdminMain.doMain(AdminMain.java:305)
        at org.glassfish.admin.cli.AsadminMain.main(AsadminMain.java:56)


还有更多配置吗?我已经检查了github的Alpha2和Alpha3版本,但看不到与此相关的更多信息

谢谢

最佳答案

Payara对JDK 9的支持仍处于早期阶段,并不可靠。它目前正在开发中,但将在5.181发布时完成。您可以使用GitHub(https://github.com/payara/Payara/issues)报告问题。您也可以通过向下滚动从https://www.payara.fish/upstream_builds下载Payara 5的最新快照。

关于java-9 - Payara5-Java 9上的payaradomain,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/47692622/

10-10 01:48