Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to add installed Glassfish 3.1 to Netbeans 7.0

I recently migrated to Netbeans 7.0(with glassfish 3.1) from 6.9(with glassfish 3.0). After that glassfish server ran just for the first time and when I restarted netbeans, since then, it doesnt show glassfish in the servers list.

Now when I am trying to add my already installed server to netbeans, on pointing to installation location of server, it says C:\Program Files\glassfish-3.1(my glassfish installation directory) does not have a usable default domain. Then on selecting : Register Local Domain it asks for:

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

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

How do I rectify this and add Glassfish support to my netbeans 7.0 ?

like image 466
Rajat Gupta Avatar asked Oct 03 '11 06:10

Rajat Gupta


People also ask

How do I resolve GlassFish error in NetBeans?

you can easily resolve this problem by changing the port number of glassfish. Go to glassfich configuration File domain. xml which is located under GlassFish_Server\glassfish\domains\domain1\config . replace 8080 by 9090 for example, then save file and run glassfish again.

Does not exist GlassFish server NetBeans?

It might be because you have downloaded the Netbeans without the Glassfish server. You can get the Netbeans with the Glassfish server from this link.


2 Answers

I just had the exact same problem and I managed to solve it this way:-

Just run NetBeans as Administrator & try again repeating your steps, everything will work!

I think that NetBeans doesn't have a right to create folders outside of it's own if you don't run it as an Administrator.

like image 72
Rajat Gupta Avatar answered Oct 17 '22 11:10

Rajat Gupta


This issue also occurred for me in UNIX using GlassFish 4.1.1.

My fix involved gaining write privileges to my GlassFish folder (located for me in /usr/local/glassfish-4.1.1). This can be done by using the chmod command, which requires sudo access if not the owner.

like image 1
Quinn Turner Avatar answered Oct 17 '22 12:10

Quinn Turner