Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GlassFish 4.1 in Eclipse errors java.io.FileNotFoundException: null/config/domain.xml (file or directory does not exist)

I'm trying to start glassfish from eclipse luna but I have this error

Unable to start server due following issues:
java.io.FileNotFoundException: null/config/domain.xml (file or directory does not exist)

Glassfish works correctly if I start it with command

sudo ./asadmin start-domain domain1

from the shell.

How can I achieve the same result without going always through the terminal?

like image 930
Domenico Avatar asked Dec 25 '22 22:12

Domenico


1 Answers

I faced exactly this problem today. The domain path is missing in GlassFish configuration. This can happen when you add GlassFish 4.x server in all hassle without completing the entire Add Server wizard. The domain path is set during 3rd step which would be skipped when you finish the wizard already during 1st or 2nd step.

You can put it back in server's properties. Rightclick GlassFish entry in Servers view, choose Properties, open GlassFish and set the Domain path accordingly (it would be blank when you faced this problem).

enter image description here

No need to reinstall the whole IDE and server as suggested in other answer. That's way too drastic.

like image 163
BalusC Avatar answered Dec 28 '22 08:12

BalusC