Glassfish server does not start. NullPointeException

前端 未结 5 1387
灰色年华
灰色年华 2021-02-02 11:54

I just downloaded the GlassFish 5.0 archive - Full Platform, unzipped it, I run it through the command line.

asadmin start-domain

pr

相关标签:
5条回答
  • 2021-02-02 12:04

    For me it didn't work what @Vifier Lockla did. I had to change the path/glassfish5/glassfish/config/asenv.conf file in a linux mint machine. At the bottom of the file the path of the jdk 1.8, i.e.

    AS_JAVA="/usr/lib/jvm/jdk1.8.0_191"
    
    0 讨论(0)
  • 2021-02-02 12:04

    GlassFish 5.1 also not working with Java 9 or later versions.

    glassfish 5.1 also needs java 8 with the AS_JAVA hack in asenv.conf/bat file.

    0 讨论(0)
  • 2021-02-02 12:05

    OK, Glassfish 5.1 doesn't exist for the moment. Continue with Glassfish 5.0 with this solution:

    Just set the AS_JAVA variable in your asenv.bat file located here: C:\DEVENV\glassfish5\glassfish\config.

    File to edit: add last line screenshot of code

    Relaunch your server....enjoy : screenshot of relaunch command to start your server

    0 讨论(0)
  • 2021-02-02 12:07

    Edit asenv.bat put set AS_JAVA=/usr/lib/jvm/java-8-oracle and asenv.conf AS_JAVA="/usr/lib/jvm/java-8-oracle"

    It works

    0 讨论(0)
  • 2021-02-02 12:20

    This looks to be this issue - https://github.com/eclipse-ee4j/glassfish/issues/22130.

    GlassFish 5 does not work on JDK9, it may be fixed for 5.1.

    0 讨论(0)
提交回复
热议问题