1

I get that error when I attempt to start the Glassfish server 4 at localhost[domain1]

Unable to start server due to following issues: Key value shall not be null.

Here's the ScreenShot of it.

I could not find a solution.

Thank you.

Picture
  • 51
  • 9
  • This might be an issue of eclipse or its plugin for glassfish. Can you have a look into the server log and post something related to this error? You can gind the log either in console window in eclipse, or in file in glassfish installation on path `glassfish/domains/domain1/logs/server.log` – OndroMih Dec 06 '15 at 09:01

3 Answers3

2

This seems to be a configuration issue:

As mentioned in this post you have to change two of your config files:

  1. In the Glassfish domain.xml (located in glassfish\domains\%domainname%\config) find the section <java-config in the <config name="server-config"> section and add the following line into it:

    -Duser.language=en

  2. In the eclipse.ini (located in your root folder of your eclipse installation) add the following line at the end:

    -Duser.language=en

Community
  • 1
  • 1
Dennis Kriechel
  • 3,719
  • 14
  • 40
  • 62
0

This problem may be occured because of GlassFish directory. If your GlassFish folder is in the Program Files directory , you need to run your IDE as administrator. Another way is to move the GlassFish folder to a different directory such as C:\GlassFish. These solutions worked for me.

0

I had the same problem on Eclipse Mars2. I added

-Duser.language=en

line to eclipse.ini but that wasn't enough.

I also had to run Eclipse as Administrator and Glassfish (4.1) works fine now.