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 183032 - Detection of glassfish v3 succeeds but presumes port 8080 which may not be correct
Summary: Detection of glassfish v3 succeeds but presumes port 8080 which may not be co...
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-28 23:58 UTC by davidacampbell
Modified: 2011-01-28 15:18 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 davidacampbell 2010-03-28 23:58:01 UTC
The first time you run any development build of glassfish 6.9, it creates ~/.netbeans/dev and it does detect the existence of a glassfish v3 instance installed, but netbeans presumes that port 8080 is the port being used by glassfish...it doesn't actually get the correct port from the server's config.

Steps to reproduce:
1.  Have glassfish v3 installed and configured to serve http on a port that is not the default port 8080.
2.  Quit netbeans 6.9
3.  Remove ~/.netbeans/dev or rename it to something else
4.  Launch netbeans 6.9
5.  Visit Tools/Servers
6.  Observe incorrect "localhost:8080" under "Location"
Comment 1 davidacampbell 2010-03-29 00:02:33 UTC
Arghh, I meant "netbeans 6.9", not "glassfish 6.9" in my report.
Comment 2 davidacampbell 2010-03-29 00:04:24 UTC
Arghh, I meant "netbeans 6.9", not "glassfish 6.9" in my report.
Comment 3 Vince Kraemer 2010-03-31 22:52:54 UTC
The server is registered outside the userdir at installation time.  Since the server had the 'default ports' when it was initially registered, that does not change.

To change this, we need to compute the port data as late as possible.
Comment 4 Vince Kraemer 2010-04-01 20:29:05 UTC
deleting the userdir as a way to force server registration was not a supported 'feature' in the IDE...

marking as invalid
Comment 5 davidacampbell 2010-04-06 00:25:36 UTC
Let me reword the steps to reproduce without any deletion of the userdir:

1.  Create a new user
2.  Install netbeans (incorporating glassfish v3) using that new user
3.  Reconfigure glassfish to serve http on a port 8081, ie not the default 8080
3.  Launch netbeans 6.9
4.  Visit Tools/Servers
6.  Observe incorrect "localhost:8080" under "Location" in netbeans
Comment 6 Quality Engineering 2011-01-27 20:44:45 UTC
Integrated into 'main-golden', will be available in build *201101271430* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/d4aa818d4897
User: Vince Kraemer <vkraemer@netbeans.org>
Log: #183032 : update port data associated with an instance from domain.xml when possible...