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 146896 - Can not start GlassFish v3 update center
Summary: Can not start GlassFish v3 update center
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: _ pcw
URL:
Keywords:
: 146895 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-09-11 09:38 UTC by Petr Jiricka
Modified: 2008-09-19 16:31 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 Petr Jiricka 2008-09-11 09:38:50 UTC
The exception reported lists many similar yet unrelated exception - this particular issue relates to the GF update center:
1. Register v3 build in Services tab (I used promoted build 23)
2. Select View Update Center
3. Click OK in the next dialog
4. Exception appears

java.io.IOException: /Users/petrjiricka/software/glassfish_b23/bin/updatetool: cannot execute
	at java.lang.UNIXProcess.forkAndExec(Native Method)
	at java.lang.UNIXProcess.<init>(UNIXProcess.java:52)
	at java.lang.ProcessImpl.start(ProcessImpl.java:91)
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
	at org.openide.execution.NbProcessDescriptor.exec(NbProcessDescriptor.java:199)
	at org.openide.execution.NbProcessDescriptor.exec(NbProcessDescriptor.java:151)
	at org.netbeans.modules.glassfish.common.actions.ViewUpdateCenterAction.isUCInstalled(ViewUpdateCenterAction.java:180)
	at org.netbeans.modules.glassfish.common.actions.ViewUpdateCenterAction.access$000(ViewUpdateCenterAction.java:69)
	at org.netbeans.modules.glassfish.common.actions.ViewUpdateCenterAction$1.run(ViewUpdateCenterAction.java:110)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)

Looks like the right permissions are not set after extracting from zip file?
Comment 1 _ pcw 2008-09-11 21:11:58 UTC
*** Issue 146895 has been marked as a duplicate of this issue. ***
Comment 2 _ pcw 2008-09-11 21:16:00 UTC
What operating system is this?

If this is a unix variant (including Mac), what folder contains the program "chmod"?

Current, the plugin does try to ensure execute permissions are set.  We check for chmod in /bin and /usr/bin.  I will
make sure a message is displayed when chmod cannot be found.

I still need to know what system this is and where chmod is on it though.
Comment 3 Petr Jiricka 2008-09-11 22:11:16 UTC
Hi Peter, this is on Mac OS X. chmod is in /bin
Comment 4 _ pcw 2008-09-11 22:16:35 UTC
How exactly did V3 get added to the services tab?

Did you use the <Download> feature of the Add Server wizard?

Was this a bundled install?

Or???
Comment 5 Petr Jiricka 2008-09-11 22:37:03 UTC
It was a promoted .zip build added manually to the services tab.
Comment 6 _ pcw 2008-09-11 22:51:18 UTC
Did you unzip it by hand then?  That would explain it.
Comment 7 Petr Jiricka 2008-09-12 06:17:05 UTC
Yes, I used muCommander: http://www.mucommander.com/ to unzip it.
Comment 8 Vince Kraemer 2008-09-17 19:52:51 UTC
I just tried this with a recent pull of the IDE and the 09/15 bits from the v3 download site on Solaris.  I could not
replicate this.. so I tightened up the platform/os info.
Comment 9 _ pcw 2008-09-17 20:10:23 UTC
Actually, it's all UNIX platforms.

Petr manually unzipped the server distribution.  We don't add execute permissions in that case, only when the server is
unzipped via Download action.  Easy enough to fix, I just needed to know what he did.
Comment 10 _ pcw 2008-09-18 00:37:38 UTC
Further clarification -- some unzip utilities ("unzip" on Solaris) will set the execute bits.  Others (anything using
the JDK api's, presumably http://www.mucommander.com/ as well) will not.

I moved the code that handles execute bits to the instantiate() method in the wizard.  This code will be executed only
on UNIX (or rather, any OS except Windows) and only on installs that are owned by the current user (e.g not root
installs) and will ensure that the scripts available at registration time have execute permissions.
Comment 12 Quality Engineering 2008-09-18 17:56:39 UTC
Integrated into 'main-golden', will be available in build *200809181401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/c1bb648b3359
User: pcw@netbeans.org
Log: #146896 added visible warning message when chmod is not found on unix platforms (when adjusting execute permissions of glasfish scripts).
Comment 13 Petr Jiricka 2008-09-19 16:31:00 UTC
Confirmed - works fine for me now.