Either your Glassfish plugin of your eclipse points to the wrong domain, or your server does not have a domain, although there should be at least a default domain, which is usually called domain1.
Check what your domain name is in the glassfish-install-dir \ glassfish \ domains directory. If there is no subdir, you can create a domain using the asadmin tool:
glassfish-install-dir\bin\asadmin create-domain your-domain-name
See this description of the create-domain command .
If you already have a domain with a different name than domain1, you need to reconfigure the plugin for the eclipse glassfish plugin. (Since I do not use eclipse, I can no longer delay you. But I remember the BalusC tutorial on this issue ).
source share