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 215414 - No option to run Glassfish Remote server
Summary: No option to run Glassfish Remote server
Status: CLOSED INVALID
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-11 14:21 UTC by jannavratil
Modified: 2012-07-13 07:01 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (57.89 KB, text/plain)
2012-07-11 14:21 UTC, jannavratil
Details
No "Restart" option in menu for "GlassFish Remote" instance (51.93 KB, image/png)
2012-07-11 17:56 UTC, jannavratil
Details
GlassFish Default running, GlassFish Remote without option to restart (135.18 KB, image/png)
2012-07-11 21:27 UTC, jannavratil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jannavratil 2012-07-11 14:21:11 UTC
The option in menu to start Glassfish Remote server is grayed out


Test suite: Managing GlassFish
http://wiki.netbeans.org/TS_71_GlassFish


Product Version = NetBeans IDE 7.2 (Build 201206291011)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_05
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.1-b03
Comment 1 jannavratil 2012-07-11 14:21:20 UTC
Created attachment 121935 [details]
IDE log
Comment 2 Jiri Kovalsky 2012-07-11 14:58:26 UTC
Guys, can you please take a look at this? Thanks!
Comment 3 Vince Kraemer 2012-07-11 15:19:34 UTC
Excerpt from TS doc...

Test suite: Managing GlassFish

Purpose: To verify a GlassFish can be controlled from IDE.

    Managing GlassFish
        [snip]
        For "GlassFish Remote" instance there should only be possible to Restart and Refresh server. Server state after refresh should follow state of "GlassFish Default" instance (bug 196214).
Comment 4 jannavratil 2012-07-11 17:26:05 UTC
the "Restart" option is grayed out too. It is not possible to do anything with this server instance

I have restarted Netbeans to see if it helps, but with no luck
Comment 5 Vince Kraemer 2012-07-11 17:39:54 UTC
Please provide complete paths for the following questions...

where is gf installed?

where is nb installed?
Comment 6 jannavratil 2012-07-11 17:55:28 UTC
reproduced on Linux - see attached screenshot

nb installed:
/home/jan/netbeans-7.2/bin/netbeans

gf installed:
/home/jan/GlassFish_Server

Product Version: NetBeans IDE 7.2 (Build 201206291011)
Java: 1.7.0_05; Java HotSpot(TM) Client VM 23.1-b03
System: Linux version 3.0.0-12-generic running on i386; UTF-8; en_US (nb)
User directory: /home/jan/.netbeans/7.2
Cache directory: /home/jan/.cache/netbeans/7.2

-----------
I will be on my testing laptop with Windows 7 again tomorrow in the morning - therefore i am sending this reproduced issue details from my Linux laptop. I guess then is the Windows 7 settings irrelevant... ?
Comment 7 jannavratil 2012-07-11 17:56:14 UTC
Created attachment 121944 [details]
No "Restart" option in menu for "GlassFish Remote" instance
Comment 8 Vince Kraemer 2012-07-11 18:36:27 UTC
and you can confirm that the remote server is running?  If the remote server is not running, then it makes sense that restart is disabled, right?
Comment 9 jannavratil 2012-07-11 19:02:22 UTC
that make sense. If it is "GlassFish Default" than yes, it is running and "Restart" option in "GlassFish Remote" is grayed out

But i guess i am missing something (how to start local server manually)..
Comment 10 Vince Kraemer 2012-07-11 20:01:30 UTC
If a server is local,the start menu item should be enabled... if the server is not running.  The Restart item may also be enabled... for a local server.

In the picture that you sent none of the servers are tagged as running...

Feel free to reopen when you find the 'missing something'.
Comment 11 jannavratil 2012-07-11 21:27:40 UTC
Created attachment 121948 [details]
GlassFish Default running, GlassFish Remote without option to restart
Comment 12 jannavratil 2012-07-11 21:30:06 UTC
I did screen-shot with running GF Default and reopened the Bug
Comment 13 Vince Kraemer 2012-07-11 23:28:33 UTC
did you refresh the 'GlassFish Remote' node so that it would show that the 'GlassFish Remote' server is running?

I think that is the take-away from bug 196214...
Comment 14 Jiri Skrivanek 2012-07-12 07:19:36 UTC
To be able to control remote server you have to enable secure admin. Probably there is a message about it in IDE log. Potential bug is that user is not informed about it. Steps how to enable secure admin are described in "Remote Application Node" test case in updated test specification

http://wiki.netbeans.org/TS_72_GlassFish#Test_suite:_Deployment
Comment 15 jannavratil 2012-07-12 11:38:06 UTC
Thank you Jiri, it explained the root cause why "Restart" was grayed out. I have tested it back on Windows 7 and it is working. Changing status to "RESOLVED".
Comment 16 jannavratil 2012-07-13 07:01:05 UTC
Thank you for your time and explanation - it was not obvious to me how to make this working.