This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 255795 - cannot add Glassfish 4.1.1
Summary: cannot add Glassfish 4.1.1
Status: REOPENED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 8.1
Hardware: PC Linux
: P1 normal with 1 vote (vote)
Assignee: Petr Hejl
URL:
Keywords: 81_HR_FIX
Depends on:
Blocks:
 
Reported: 2015-10-08 05:24 UTC by alied
Modified: 2017-09-05 14:34 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (99.96 KB, text/plain)
2015-10-08 05:24 UTC, alied
Details
Error message (30.69 KB, image/png)
2015-10-08 05:29 UTC, alied
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alied 2015-10-08 05:24:12 UTC
Product Version = NetBeans IDE 8.1 RC (Build 201510012201)
Operating System = Linux version 4.2.3 running on amd64
Java; VM; Vendor = 1.8.0_60
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.60-b23

Reproducibility: Happens every time

STEPS:
- Download glassfish 4.1.1[1] and extract.
- In Netbeans go to Services view
- In Servers right-click and select "Add Server..."
- Set a name and click "Next"
- In "Instalation Location" click "Browse..." and navigate to the glassfish instalation directory.

[1]https://glassfish.java.net/download.html
ACTUAL:
- An error message "Not a valid GlassFish Server installation."
EXPECTED:
- Glassfish directory is detected and server is added
Comment 1 alied 2015-10-08 05:24:19 UTC
Created attachment 156612 [details]
IDE log
Comment 2 alied 2015-10-08 05:29:51 UTC
Created attachment 156613 [details]
Error message
Comment 3 Jiri Kovalsky 2015-10-08 06:40:56 UTC
Reassigned for further evaluation.
Comment 4 Petr Hejl 2015-10-08 07:29:51 UTC
This is a P1 I guess.
Comment 5 Petr Hejl 2015-10-08 07:39:12 UTC
Fixed in web-main 243f921abc4e. Please verify.
Comment 6 Jiri Kovalsky 2015-10-08 07:43:23 UTC
Once the fix gets to release81 branch, TM will be set to 8.1.
Comment 7 Stepan Zebra 2015-10-08 13:41:21 UTC
verified in trunk, please integrate to 8.1
Comment 8 Tomas Mysik 2015-10-08 13:58:18 UTC
The patch seems OK.
Comment 9 Petr Hejl 2015-10-08 14:39:48 UTC
Fixed in releases branch release81 fc51753b69d0 & 0189c8faee09.
Comment 10 alied 2015-10-08 23:48:29 UTC
no patch link this time? I'd like to see the fix.
Comment 11 Quality Engineering 2015-10-09 01:22:35 UTC
Integrated into 'main-silver', will be available in build *201510090002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/243f921abc4e
User: Petr Hejl <phejl@netbeans.org>
Log: #255795 - cannot add Glassfish 4.1.1
Comment 12 alied 2015-10-09 01:24:28 UTC
Thanks :-)

(In reply to Quality Engineering from comment #11)
> Integrated into 'main-silver', will be available in build *201510090002* on
> http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
> 
> Changeset: http://hg.netbeans.org/main-silver/rev/243f921abc4e
> User: Petr Hejl <phejl@netbeans.org>
> Log: #255795 - cannot add Glassfish 4.1.1
Comment 13 alied 2015-10-09 01:40:59 UTC
(In reply to Quality Engineering from comment #11)
> Integrated into 'main-silver', will be available in build *201510090002* on
> http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
> 
> Changeset: http://hg.netbeans.org/main-silver/rev/243f921abc4e
> User: Petr Hejl <phejl@netbeans.org>
> Log: #255795 - cannot add Glassfish 4.1.1

Does it mean you'll have to update that for every new GlassFish release?
lib/install/applications/__admingui/WEB-INF/lib/console-core-([\d.]+).jar has the version on its name, as well as META-INF/MANIFEST.MF in the OSGi entry: Bundle-Version: 4.1.1
Comment 14 Stepan Zebra 2015-10-13 13:26:19 UTC
verified in 8.1 RC2 (Build 201510122201)
Comment 15 Rohaan427 2017-08-27 03:47:45 UTC
Product Version: NetBeans IDE 8.1 (Build 201510222201)
Updates: NetBeans IDE is updated to version NetBeans 8.1 Patch 1
Java: 1.8.0_131; Java HotSpot(TM) 64-Bit Server VM 25.131-b11
Runtime: Java(TM) SE Runtime Environment 1.8.0_131-b11
System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)

(Note on the above: It's an Intel 4770 CPU, not an AMD)


I have just installed NetBeans 8.1 because 8.2 has several issues that are making it unusable. One of the few things that works in 8,2 is that my Glassfish installations (I've added two different versions - 4.1.1 and 4.1.2, as well as Payara 4.1.2.173) work, so I would think they would work in NB 8.1.

When I try to add any of these installations in NetBeans 8.1, I get the error "Not a valid Glassfish server installation". I know they're valid, because they work in NB 8.2 (and as stand-alone). I attempted to update NB 8.1, but the updater says there are no updates.

(Before anyone comments, if not for NB 8.2 throwing exceptions every 10 minutes and becoming unusable for coding and debugging, I would not be reverting to an older NB version.)
Comment 16 t_gergely 2017-09-05 14:34:03 UTC
(In reply to Rohaan427 from comment #15)

> I have just installed NetBeans 8.1 because 8.2 has several issues

Fair enough.
You can rename glassfish\lib\install\applications\__admingui\WEB-INF\lib\console-core-4*.jar to console-core-4.0.jar as a workaround.