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 132540 - Wrong ports for glassfish
Summary: Wrong ports for glassfish
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P2 blocker (vote)
Assignee: issues@installer
Keywords: RELNOTE
: 132444 (view as bug list)
Depends on:
Reported: 2008-04-10 15:20 UTC by july
Modified: 2008-07-30 13:25 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

start(UAC turned of) (6.93 KB, text/plain)
2008-04-21 11:59 UTC, july
stop(UAC turned of) (1005 bytes, text/plain)
2008-04-21 12:00 UTC, july

Note You need to log in before you can comment on or make changes to this bug.
Description july 2008-04-10 15:20:23 UTC
Netbens RC1 (JavaEE or Full bundle)

start ide and glassfish
start admin Console 

Please, wait while the domain is being created...
Using port 7007 for Admin.

Using port 10239 for HTTP Instance.

Using port 9835 for JMS.

Using port 5859 for IIOP.

Using port 10340 for HTTP_SSL.

Using port 5979 for IIOP_SSL.

Using port 6079 for IIOP_MUTUALAUTH.

Using port 10845 for JMX_ADMIN.

Domain being created with profile:developer, as specified by variable AS_ADMIN_PROFILE in configuration file.

The file in given locale [ru_RU] at: [C:\Program Files\glassfish-v2ur2\lib\install\templates\locales\ru_RU\index.html]
could not be found. Using default (en_US) index.html instead.

Security Store uses: JKS

Domain personalDomain created.
Comment 1 dlipin 2008-04-10 15:27:55 UTC
could you please check the same scenario with 6.1 Beta ?

Comment 2 dlipin 2008-04-10 15:42:19 UTC
could you please try to install 6.1beta with glassfish v2 ur1, add this server under Servers node in 6.1RC1 and try to 
start it?
Comment 3 july 2008-04-10 16:13:05 UTC
It is checked up on 6.1beta with glassfish v2 ur1 (2008-03-05_03-01-33)  -	It is reproduced

Comment 4 dlipin 2008-04-10 17:13:56 UTC
It could be possible fixed by removing Vista manifest file from executable so that installer would always run with 
permissions that the current user have but that would lead back to Issue 102168.

Running installer now automatically do that with admin permissions (with UAC enabled). Running NetBeans is done under 
usual user - so some kind of permissions and rights lack result in this issue.

Could you please do the following:
0) Remove ~/.asadmin* files
1) Install RC1 with NetBeans and GlassFish as usual
2) Modify <gfdir>/bin/asadmin.bat file : add -DDebug to the list of arguments in the java call 
"%AS_JAVA%\bin\java" -Dcom.sun.aas.instanceName=server ... 
"%AS_JAVA%\bin\java" -DDebug -Dcom.sun.aas.instanceName=server ...
3) Open cmd, move to <gfdir>/bin and run "asadmin.bat start-domain domain1 > start.log"
4) Open another cmd, move to <gfdir>/bin and run "asadmin.bat stop-domain domain1 > stop.log"

Please attach that start/stop.log here.

Do the same steps with UAC turned off and attach the appropriate logs as well.

Thanks in advance,
Comment 5 dlipin 2008-04-10 17:20:46 UTC
*** Issue 132444 has been marked as a duplicate of this issue. ***
Comment 6 july 2008-04-21 11:58:08 UTC
UAC turned off  (see att)
with UAC enabled  - cmd >...start-domain...> Access is denied
Comment 7 july 2008-04-21 11:59:44 UTC
Created attachment 60486 [details]
start(UAC turned of)
Comment 8 july 2008-04-21 12:00:15 UTC
Created attachment 60487 [details]
stop(UAC turned of)
Comment 9 dlipin 2008-07-29 12:03:15 UTC
In agreement with QE closing the issue as will-not-fix and adding it to release notes.
Barbara, could you please add this bug into the installer part of release notes? 
In fact, it can be added to both 6.1 and future (6.5) release notes.

Issue #132540: GlassFish default domain is started with ports settings different from the ones set during installation 
on Vista.
Description: GlassFish default domain ports (Admin, HTTP, HTTPS, etc) are different from the ones set during 
installation on Windows Vista with UAC turned on. This happens since installation is always performed with 
administrator privilegies (in case UAC is turned on) and NetBeans/GlassFish is run under normal user by default.
Workaround: There are 3 possible workarounds.
1) Turn UAC off
2) Run NetBeans as Administrator (using "Run as ..." from the right-click menu on the NetBeans shortcut)
3) Install GlassFish in a non-system directory (other than C:\Program Files, C:\Windows, etc), e.g. at C:\Sun\GlassFish.