benyusouf
benyusouf

Reputation: 465

How to add Glassfish 5.0 server in Netbeans 8.2

We have a java application on netbeans that's using Glassfish server 4.1. We recently conducted a scan we got recommendation that we should update Glassfish server to the latest version because v4.1 has vulnerability issues. I download Glassfish server 5.0 which in zip, I unzipped and navigate inside the folders. I'am able to reach the admin console localhost:4848 but when I tried adding Glassfish server from tools in netbeans it tells me that not a valid Glassfish server installation. Checked everywhere online couldn't find a solution to this, I don't know how to go about this, could anybody help please???

Upvotes: 0

Views: 15345

Answers (1)

skomisa
skomisa

Reputation: 17363

Rather than research and guess what your specific problem might be, it is far easier just to start over since the entire process of downloading and configuring Glassfish 5 in NetBeans 8.2 only takes a couple of minutes.

Step 1:

  • Tools > Add Server
  • Select GlassFish Server, enter a suitable name in the Name field and click Next >

    screen1

Step 2

  • On the Add Server Instance screen, click the Browse... button.
  • Navigate to your existing Glassfish 5 installation and select the top level directory, and click Choose.

    screen2

Step 3

  • Having done that you should see a message stating "Detected a Glassfish Server 5.0 install..." as shown in the screen shot below.
  • If you don't see that message (and apparently you are getting "Not a valid GlassFish Server installation.") then simply download Glassfish 5 again, unzip it to a new directory, and use that installation instead.
  • Click the check box for "I have read and accept..." and click Next >. screen3

Step 4

  • Accept the default values for the Domain Location settings and click Finish.

    screen4

Step 5

  • Now open Tools > Servers and select the server you just added. The screen should look similar to this:

    screen5

I just tried this and it worked fine using NetBeans 8.2, Oracle Glassfish 5 and JDK 8.

Upvotes: 2

Related Questions