Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Netbeans, Adding Glasfish server "does not exist"

When adding a Glassfish Server, the following shows Does not exist

It seems to be a new problem since I can't find anyone else with the same issue. Anyone else with this problem?

like image 649
Wouter Vandenputte Avatar asked Oct 16 '18 09:10

Wouter Vandenputte


People also ask

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.

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.

How to add the GlassFish server to NetBeans IDE?

Follow these instructions to add the GlassFish Server to NetBeans IDE. Select Tools -> Servers to open the Servers dialog. Click Add Server. Under Choose Server, select GlassFish v3 and click Next. Under Server Location, browse the location of your GlassFish Server installation and click Next. Under Domain Location, select Register Local Domain.

How to register a GlassFish server on a local domain?

Under Choose Server, select GlassFish v3 and click Next. Under Server Location, browse the location of your GlassFish Server installation and click Next. Under Domain Location, select Register Local Domain. Click Finish. Previous: To Install NetBeans IDE without GlassFish Server

How do I install GlassFish on a Windows Server?

However, there is a simple workaround: First, download Glassfish directly from the GlassFish download page. Then specify the folder containing the download of GlassFish as the Installation Location in the Add Server Instance screen. And avoid this issue. For example "java EE bundle" or "All bundle"

How to deploy sales processing system in NetBeans?

Right-click on the project name Sales Processing System. Select the option Deploy from the drop-down menu. After this, the GlassFish Server will start (if it has not started already), and the application will be deployed: How it works... NetBeans starts the server and deploys the application in the build\web folder of the project.


2 Answers

Updated 4/19/18:

I raised a bug report for this issue: NETBEANS-997 Unable to download and create GlassFish server. It is fixed in NetBeans 11.0.

Also see NETBEANS-997 Fix for unable to download and create GlassFish server / support for installing GF 4.1.2 & GF 5.0

(End of update)


I can replicate your problem when downloading GlassFish as part of the process of adding the GlassFish server. In my case, this is what happened:

  • I selected an existing Installation Location folder to contain the download of GlassFish, named C:\Users\johndoe\GFDownload
  • I received a Download & Install completed... message, followed by the Does not exist error, just as you did.
  • The folder I had created (C:\Users\johndoe\GFDownload) was renamed as C:\Users\johndoe\GFDownload1 and contained a single empty file named foo4126589950858116700.tmp.

So this looks like a bug in NetBeans: if there is an error during the process of downloading GlassFish then NetBeans renames your Installation Location folder, and incorrectly reports Download & Install completed....

In your case, check to see whether NetBeans renamed your Installation Location folder as E:Users\Wouter\Glassfish_Server1.

Since this issue is occurring on Oracle's 8.x version of NetBeans, and NetBeans has now been handed over to Apache, I doubt that the problem will be fixed. However, there is a simple workaround:

  • First, download Glassfish directly from the GlassFish download page.
  • Then specify the folder containing the download of GlassFish as the Installation Location in the Add Server Instance screen.
like image 155
skomisa Avatar answered Oct 08 '22 02:10

skomisa


Another options is install a different Netbeans 8.2 bundle here
enter image description here And avoid this issue. For example "java EE bundle" or "All bundle"

like image 24
christianbueno.1 Avatar answered Oct 08 '22 03:10

christianbueno.1