Eclipse error: glassfish \ domains \ domain1 does not exist

I have a java ee6 sdk web profile and am using eclipse ee. I installed the Glassfish plugin for eclipse using Download additional server adapters in the Create New Server Wizard. Now, when creating a test application, the eclipse raises this error glassfish \ domains \ domain1 does not exist . What is the reason and how to remove it?

+6
source share
8 answers

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 ).

+9
source

Go to the <Glassfish-install-directory>/glassfish/config .

Change asenv and specify the JDK setting for set AS_JAVA=C:\Java\jdk .

Now you can run asadmin .

Create a new domain using asadmin create-domain domain1 (inside the bin directory).

Server setup in eclipse will now find your newly created domain.

+5
source

I ran into the same problem and fixed it as follows:

  • Open a command prompt and go to C:\glassfish3\glassfish\bin (or whatever your glass-style directory is)
  • Run asadmin
  • Type create-domain --adminport 4848 domain1 (your debug port can probably be any)
  • Return to Eclipse and continue
+2
source

Although the late answer, but may be useful for someone who is faced with similar problems.

If there is no domain in your glass path, say C:\glassfish4\glassfish\domains\ , you can create a new domain in the following path:

  • Go to C:\glassfish4\bin\ and double-click on asadmin.bat . It will open a command prompt as asadmin >

  • Enter the following command asadmin > create-domain --adminport 4848 domain1

  • Press Enter repeatedly to save the default settings, namely. username (admin) and other things.

What is it. You will find domain1 created in the C:\glassfish4\glassfish\domains\ directory with all default configurations.

If you want to create a domain in a different directory or want more information, see the Oracle Glassfish reference:

http://docs.oracle.com/cd/E19798-01/821-1758/create-domain-1/index.html

0
source

Eclipse does not have a domain path setting for the Glassfish server. This error occurs when the wrong domain path. Make sure when you run the application on eclipse, give the user credentials / password for the webcam

0
source

In my case, the area C: \ glassfish4 \ glassfish \ domains \ domain1 \ config \ domain.xml was renamed to something like the domain 568912323464576456 .xml, so I edited the file, leaving it as it should have been named and finished, the server again launched.

0
source

create a new domain using

 asadmin create-domain myDomain 

add the path to this new domain, if there is a message "domain is invalid", make the domains in the / myDomain / conf folder not only the root. If there is a “not overlapping” message, open Eclipse as root and try again. This should be the job in these cases.

0
source

You must add a password to your administrator. Eclipse error. Eclipse does not recognize a domain without an administrator password.

When creating the domain, add the admin user and password, and Eclipse will no longer complain.

-1
source

Source: https://habr.com/ru/post/885729/


All Articles