Unable to add installed Glassfish 3.1 to Netbeans 7.0

glassfishnetbeans

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 ?

Best Answer

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.

Related Topic