You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Pete Whelpton (JIRA)" <ji...@apache.org> on 2019/01/26 17:50:00 UTC

[jira] [Commented] (NETBEANS-997) Unable to download and create GlassFish server

    [ https://issues.apache.org/jira/browse/NETBEANS-997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16753140#comment-16753140 ] 

Pete Whelpton commented on NETBEANS-997:
----------------------------------------

I figured out what is happening and got Glassfish 4.1.1 to download and install via the NB installer.

What is happening is:
 
1) NB first looks for the .txt file for the relevant Glassfish version on [serverplugins.netbeans.org|http://serverplugins.netbeans.org/] (it will follow redirects to try and find it).
2) If NB finds the txt file, it reads the first line, which contains the directory path for that version of glassfish (see [http://serverplugins.netbeans.org/glassfishv3/post71v3-1-2.txt] which is still up!)
   2a) The directory path is appended to the hardcoded base URL, [http://download.java.net|http://download.java.net/]
   2b) NB will then try and download the glassfish .zip from this URL (but won't follow redirects!)
3) If NB fails to find/parse the .txt file, it will try and download the .zip from the direct [download.java.net|http://download.java.net/] link (the one with the ?nbretriever=fallback querystring), but won't follow redirects
 
Because there are now 301 redirects on the [download.java.net|http://download.java.net/] URLs from http to https, even the fallback was failing.  Changing the fallback URL for GF4.1.1. to https meant that it downloaded correctly.
 
Questions:
 
a) Do we want to keep this logic, and host .txt files with the download path on [netbeans.apache.org|http://netbeans.apache.org/]?  Probably the least intrusive way to get things working again....
b) If not, what to do with this logic?  Delete it?  comment it out and just the fallback URL? or leave it in and allow NB to waste a few cycles trying to find a .txt file that doesn't exist?
c) Do we want to take this opportunity to update the [java.download.net|http://java.download.net/] hostname to [download.oracle.com|http://download.oracle.com/], as that seems to be where the main Glassfish web page links to now for downloads?
d) Should the fallback URL also follow redirects?

> Unable to download and create GlassFish server 
> -----------------------------------------------
>
>                 Key: NETBEANS-997
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-997
>             Project: NetBeans
>          Issue Type: Bug
>          Components: serverplugins - GlassFish
>    Affects Versions: 8.2, 9.0
>         Environment: Product Version: Apache NetBeans IDE Dev (Build incubator-netbeans-release-302-on-20180517)
> Updates: Updates available
> Java: 1.8.0_172-ea; Java HotSpot(TM) 64-Bit Server VM 25.172-b03
> Runtime: Java(TM) SE Runtime Environment 1.8.0_172-ea-b03
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
> User directory: C:\Users\johndoe\AppData\Roaming\NetBeans\dev
> Cache directory: C:\Users\johndoe\AppData\Local\NetBeans\Cache\dev
>            Reporter: Rick Hegarty
>            Priority: Minor
>         Attachments: installGlassfish1.png, installGlassfish2.png
>
>
> [1] Add a Glassfish server: *Services Panel > Servers >* right-click *> Add Server... > GlassFish Server > Next >*
> [2] On the *Add Server* screen:
>  * In *Installation Location* enter a valid directory name that does not exist. 
>  * Check the _I have read...._ checkbox.
>  * Click *Download Now...* and then select _Glassfish Server 4.1.1_ as the server to be downloaded. 
>  * See attached screenshot *installGlassfish1.png*
> [3] The download appears to be successful but there is an error at the bottom of the *Add Server Instance* window: *! Does not exist.* See attached screenshot *installGlassfish2.png*
>  [4] The target folder does not get created. Also, if an empty target folder is pre-created the same error occurs, and the target folder remains empty.
> [5] This error occurs with both NB 8.2 and NB 9.0 RC1.
> [6] Priority is minor since the simple workaround is to download Glassfish first outside of NetBeans, and then select that downloaded folder within the *Add Server* wizard.
> [7] Possible duplicate of NETBEANS-965 ("does not load GlassFish"), but there is no description for that bug and the screenshot information is in Russian.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists