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 204299

Summary: Open in Browser uses localhost for remote server
Product: serverplugins Reporter: Jiri Skrivanek <jskrivanek>
Component: GlassFishAssignee: Vince Kraemer <vkraemer>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P3    
Version: 7.1   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description Jiri Skrivanek 2011-10-27 07:45:26 UTC
If you use "Open in Browser" on an application deployed on remote GlassFish server it opens browser at http://localhost:8080/WebApplicationRemote which is wrong. Also server properties shows Location: localhost:8080. To reproduce:

- install and start GlassFish at remote host
- add remote GlassFish instance in IDE on local host
- create and run web project
- browser is opened at correct address http://my.remote.host:8080/WebApplicationRemote/
- go to Services
- expand "Servers|Remote Server|Applications"
- right-click WebApplicationRemote and choose "Open in Browser"
- it opens browser at http://localhost:8080/WebApplicationRemote

Product Version: NetBeans IDE Dev (Build 201110250600)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Windows XP version 5.1 running on x86; Cp1250; en_US (nb)
Comment 1 Vince Kraemer 2011-10-27 19:49:39 UTC
could replicate
Comment 2 Vince Kraemer 2011-10-31 17:29:52 UTC
in main-golden... so it should be in the dev build...

http://hg.netbeans.org/main-golden/rev/68e99a1df4e5