Failed to add installed Glassfish 3.1 in Netbeans 7.0

I recently switched to Netbeans 7.0 (with glass fish 3.1) from 6.9 (with glass fish 3.0). After that, the Glassfish server was only launched for the first time, and when I restarted netbeans, it has not displayed the glass fish in the server list ever since.

Now, when I try to add my already installed server to netbeans, pointing to the server installation location, it says that C:\Program Files\glassfish-3.1 (my installation directory on Solarfish) does not have a useful default domain. Then, when choosing: Register Local Domain it asks:

 Enter the path to a directory that will contain a new domain. 

When choosing any directory, he says: Unsupported domain at C:\Program Files\glassfish-3.1; Admin-listener is disabled or no enabled http-listener Unsupported domain at C:\Program Files\glassfish-3.1; Admin-listener is disabled or no enabled http-listener

How to fix this and add Glassfish support to my netbeans 7.0?

+4
source share
4 answers

I had exactly the same problem, and I managed to solve it like this: -

Just start NetBeans as an administrator and try again, everything will work!

I think NetBeans is not allowed to create folders outside of it unless you run it as an administrator.

+10
source

I had the same problem, but this time Netbeans 8 with Glassfish 4.x win7, as I solved it, below: There is no need to run netbeans as an administrator. There is no need to download the Glassfish zip file, you will upload via the NetBeans IDE.

 -create a dir where you'll place your glassfish installation files. In my case (win7) is: C:\glassfish4 -Enter glassfish ide, go to Services / Servers / Add Server -when Netbeans request your GlassFish location, browse the one we created above. -select "Remote Domain" -mark "I have read and accept licence agreement" -press "Download" and select glasfish 4, ok. 

this should start loading the Glasfish server, just follow the configuration steps.

0
source

This issue also occurred to me on UNIX using GlassFish 4.1.1.

My fix is โ€‹โ€‹getting write access to my GlassFish folder (for me, in / usr / local / glassfish -4.1.1). This can be done using the chmod command, which requires sudo access, if not the owner.

0
source

This occurs when Java EE is not activated in the IDE. In the Services window, the node servers are then empty. node allows you to add a new server, and in the process activates Java EE. Now, trying to register, the IDE discovers that it already has a dedicated server, refusing to register it twice. Just cancel and use the existing server on the updated node servers.

0
source

All Articles