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 268195 - NetBeans open wrong URL in browser on running EAR while unsecure http-listener is disabled
Summary: NetBeans open wrong URL in browser on running EAR while unsecure http-listene...
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-25 18:22 UTC by dNhax
Modified: 2016-09-26 05:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dNhax 2016-09-25 18:22:51 UTC
Hi,

I'm developing a Maven Enterprise Application Project with NetBeans 8.1 on my Windows 10 Pro x64 (also Windows 7 x64) machine. As server I tested GF 4.1.1 first, but after the problem occurred I switched to Payara 4.1.1.163; same problem. Also with GlassFish 4.1 the issue is present. So I assume this might be a NetBeans issue.

So, when I want to run my application from within NetBeans, after deploying Firefox opens the wrong URL (http://localhost:8181/MyApp that is) instead of expected http**s**://localhost:8181/MyApp.
I disabled the unsecured http-listener-1 in the server so the application is only accessible through HTTPS, but that does not solve the problem. Re-enabling the http-listener resolves the problem (loading http://localhost:8080/MyApp and redirecting to http**s**://localhost:8181/MyApp.

If you need any more information, please let me now.

Best regards,

dNhax
Comment 1 dNhax 2016-09-26 05:49:55 UTC
(In reply to dNhax from comment #0)
> Hi,
> 
> I'm developing a Maven Enterprise Application Project with NetBeans 8.1 on
> my Windows 10 Pro x64 (also Windows 7 x64) machine. As server I tested GF
> 4.1.1 first, but after the problem occurred I switched to Payara 4.1.1.163;
> same problem. Also with GlassFish 4.1 the issue is present. So I assume this
> might be a NetBeans issue.
> 
> So, when I want to run my application from within NetBeans, after deploying
> Firefox opens the wrong URL (http://localhost:8181/MyApp that is) instead of
> expected http**s**://localhost:8181/MyApp.
> I disabled the unsecured http-listener-1 in the server so the application is
> only accessible through HTTPS, but that does not solve the problem.
> Re-enabling the http-listener resolves the problem (loading
> http://localhost:8080/MyApp and redirecting to
> http**s**://localhost:8181/MyApp.
> 
> If you need any more information, please let me now.
> 
> Best regards,
> 
> dNhax

Word clarification:

If only the secure HTTP-listener is enabled inside GlassFish Server, NetBeans still opens the browser with HTTP instead of HTTPS.