Bug 188799 - fail to detect that server is running when secured
fail to detect that server is running when secured
Status: RESOLVED FIXED
Product: serverplugins
Classification: Unclassified
Component: GlassFish
6.x
All All
: P2 (vote)
: TBD
Assigned To: Vince Kraemer
issues@serverplugins
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-20 17:41 UTC by Vince Kraemer
Modified: 2010-07-22 15:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vince Kraemer 2010-07-20 17:41:11 UTC
From a thread in the GlassFish forums on java dot net


What I use:
- Mac OS 10.6 with latest updates installed on my local machine
- Netbeans 6.9 + Glassfish 3.0.1 (local installation ==> works fine)
- Glassfish 3.0.1 Remote Server on Ubuntu Server (Hardy)
- Ubuntu Firewall is open
- Remote Port is 4848 and only accessable via https

Here is what I try in detail in Netbeans for setting up the Remote Server:
1. Choose Tools -> Servers in the menu bar
2. Click on "Add Server..." button
3. Choose "Glassfish Server 3" in the opening dialog
4. Click on "next" button
5. Choose the local installation location of the local Glassfish 3.0.1 installation (for me: "/Applications/NetBeans/glassfish-3.0.1")
6. Click on "next" button
7. Choose radio button "Register Remote Domain" 
8. Enter the remote hostname: (i.e, mydomain.com) 
9. Enter the corresponding admin port (i.e. 4848)
10. now click on "finish" button

After this I can see the following in my Server list for the Server I just added:
- Location : "mydomain.com:8080"
- Domain Folder : ""
- Domain Name : ""
- Checkboxes set: "Preserver Sessions Across Redeployment" (editable checkbox) + "Enable JDBC Driver Deployment" (non editable checkbox), all other checkboxes are disabled and not set

As you see both Domain Folder and Domain Name is empty.
Furthermore I cannot change any of Location, Domain Folder or Domain Name settings anymore (==> non editable fields).

Now I should actually be able to connect to the server, start it, stop it, etc.
What I do to test this:

11. Go to the "Services" tab on the left sinde of Netbeans IDE
12. Open the "Servers" list (as I see my remote Glassfish server I just added is listed besides my local Glassfish server)
13. Right-Click on the remote Server:
- Start, Stop, Restart, etc. is disabled ==> I cannot start it from Netbeans
- Refresh is enabled, but doesn't change anything
- Clicking on "View Admin Console" leads to the message: "The server must be running for this actoin to succeed."
- In the properties I cannot change anything (see above)
Comment 1 Vince Kraemer 2010-07-20 17:57:27 UTC
I was able to replicate this issue.

In my situation, the hostname for the cert does match the hostname of the connection... so the connection is not acceptable and this trickles up to the test to see if a server is running.
Comment 2 Quality Engineering 2010-07-22 03:14:43 UTC
Integrated into 'main-golden', will be available in build *201007220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/23d671962ce5
User: Vince Kraemer <vkraemer@netbeans.org>
Log: #188799: hostname mismatches thwart the 'is this server running?' check


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo