1

I am a newbie starting with Java EE and GlassFish, in GNU/Linux Debian 7, using Eclipse Kepler as IDE.

I have a problem when I try to install a new server in Eclipse. The steps I follow are:

  • Click on Eclipse's link "No server are available. Click this link to create a new server..." on Servers tab.
  • Select Glassfish>Glassfish 4.0 and click on next button.
  • Select JDK and Glassfish Server Directory, then click on next button once more.
  • Then an error message is appeared on the top of the context window:

    "/opt/glassfish4/glassfish/domains/domain1/config/domain.xml is not a valid domain (no domain.xml)"

http://oi43.tinypic.com/eivakp.jpg

I do not have much experience, specially in GNU/Linux but this is for auto-educational purpose, so I will be glad if your are so kind to help me to solve this situation :S

Any doubt I will try to clear it as soon as posible.

Thank you very much :)

Kara
  • 6,115
  • 16
  • 50
  • 57
  • 1
    Are you sure the instance of Glassfish you're pointing to was properly installed and works correctly outside of Eclipse? – fvu Jan 13 '14 at 22:41
  • I notice the server is running at http://localhost:8080/ and I can admin at http://localhost:4848/. Any other way to know if is it working outside Eclipse? :S – José Ángel Buesa Jan 13 '14 at 22:46
  • That mean that it's more OK than Eclipse seems to suggest :). Does `/opt/glassfish4/glassfish/domains/domain1/config/domain.xml` actually exist? – fvu Jan 13 '14 at 22:48
  • Yes, it exists and it is not empty. Could it be about permission on domain1 or config folder? – José Ángel Buesa Jan 13 '14 at 22:49
  • Could be, as I assume you're executing Eclipse as your user, and GF was probably installed to run as root, or under a dedicated user. – fvu Jan 14 '14 at 10:26
  • That is right. I gave permission to my user in /opt/glassfish4/glassfish/domains, then I created a new domain with my user and finally I could perfectly create a new server in Eclipse. Than you very much!!! :) – José Ángel Buesa Jan 14 '14 at 21:42

0 Answers0