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 118433 - Error Message when adding Remote GlassFish to IDE
Summary: Error Message when adding Remote GlassFish to IDE
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Nitya Doraisamy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-10 18:58 UTC by lh32469
Modified: 2007-12-07 20:11 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
domain1 xml file (38.88 KB, text/xml)
2007-11-19 11:09 UTC, nouar38
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lh32469 2007-10-10 18:58:09 UTC
Reproduction steps:

Phase One:
1. Select Tools -> Servers -> Add Server
2. Select "GlassFish V2" -> Next
3. Select "Register Remote Domain" -> Next
4. Enter hostname and admin port of remote GlassFish V2 App Server on another server -> Next
5. Enter admin username and password -> Finish

Error popup appears stating messsage below even though user and password are correct:

Authentication for grizzly failed with message Server returned HTTP response code: 504 for
http://grizzly:4848/web1/remotejmx.
If the username or password is incorrect, you can change them via Tools | Server Manager

This functionality works with NetBeans 6.0, beta1.


NetBeans Version: 
Product Version: NetBeans IDE Dev (Build 200710090000)
Java: 1.5.0_10; Java HotSpot(TM) Client VM 1.5.0_10-b03
System: Linux version 2.6.15-28-386 running on i386; UTF-8; en_US (nb)
Userdir: /Users/lh32469/.netbeans/dev

App Server Version:
Sun Java System Application Server 9.1 (build b58g-fcs)
Comment 1 Ivan Sidorkin 2007-10-19 12:04:55 UTC
reproduced with
Product Version: NetBeans IDE 6.0 Beta 2 (Build 200710181000)
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05
System: Linux version 2.6.20-16-generic running on i386; UTF-8; en_US (nb)

on two linux computers

server added without any error but it can't detect that server started
server started at Windows computer
Comment 2 nouar38 2007-10-29 16:40:47 UTC
Was able to reproduce on RHEL 4.0 with NB 6.0 daily 200710231200 & GF v2 b58g-fcs and jdk 1.6u3-b05
with a solaris remote host and a windows/xp host, when in IDE-Tools/Options a Manual Proxy Settings is set 
with a proxy like: webcache.sfbay (8080)

Was able to reproduce on Solaris-sparc with NB 6.0 daily 200710231200 & GF v2 ur1-b05

Could you please check you IDE settings for proxy ?

loggued a while ago issue 106245 for similar case.






Comment 3 nouar38 2007-10-30 10:07:59 UTC
If we register the remote domain with the hostname fully qualified domain name, there is no issue if the proxy
webcache.sfbay is set in IDE/Tools/Options.
(like in my case solaris-sparc gamay-03.france.sun.com , or syrah-01.france.sun.com added as remotes in linux - RHEL 4.0
IDE)

added my self in CC.
Comment 4 Nitya Doraisamy 2007-10-31 20:45:37 UTC
Did you provide the fully qualified name as indicated by Nouar? If not, could you try registering the remote server
using the fully qualified name to see if issue persists.
Comment 5 lh32469 2007-10-31 21:53:04 UTC
In my case, the remote app server is just a local machine defined in /etc/hosts and sitting in my basement.

Again, I'm currently using this setup successfully with the NetBeans, beta1
version Shown Below:

Product Version: NetBeans IDE 6.0 Beta 1 (Build 200709141330) 
Java: 1.5.0_10; Java HotSpot(TM) Client VM 1.5.0_10-b03 
System: Linux version 2.6.15-29-386 running on i386; UTF-8; en_US (nb) 
Userdir: /Users/lh32469/.netbeans/6.0beta1
Comment 6 nouar38 2007-11-07 14:04:19 UTC
all the hosts in our lab are on NIS/DNS. 
I'll try to reproduce with local name resolution
between 2 linux RHEL 4.0 hosts, but cannot do on windows/xp for the moment.

On RHEL 4.0, I'm disabling the IPV6 configuration as required by Beta2 release notes.
Comment 7 nouar38 2007-11-16 17:00:59 UTC
On RHEL 4.0 U4 could not reproduce the problem even if no more DNS/NIS is setup.

But, discovered that the linux kernel you mentioned is Ubuntu 6.0 Dapper.

Today managed to install Linux 2.6.15-29-386 #1 PREEMPT Mon Sep 24 17:18:25 UTC 2007 i686 GNU/Linux
on my LX50 box with jdk 1.5u14, NB 6.0 RC1 & GF v2 fcs.
But, in my configuration there is a DHCP server giving me automatic IP address assignments within
a lease file for the ethernet interface.
Within this configuration could not reproduce the issue.
I'm not familiar with Ubuntu, but trying to find how to setup static IP @ assignment and local resolution.
Comment 8 nouar38 2007-11-19 10:58:14 UTC
was able to reproduce on Windows/xp box: 
stop gf-v2-ur1-b09 server
remove server instance
exit IDE
uninstall daily 2007151200 

install 2007181200 after download from I.E where proxy settings is put to webcache.sfbay:8080 to get the bits. (usual
configuration)

Start IDE,
In IDE Options: 
Web browser = <default system browser> 
Proxy Settings: box Use System Proxy Settings checked

Register gf-v2-ur1-b09 and start server
In server.log can see: my I.E proxy settings used

-Dcom.sun.updatecenter.home=C:/Program Files/glassfish-v2-ur1-b09/glassfish/updatecenter
-Ddomain.name=domain1
-Dhttp.nonProxyHosts=localhost*|syrah-01*|syarh-01.france.sun.com*|<local>*|localhost|127.0.0.1|syrah-01
-Dhttp.proxyHost=webcache.sfbay
-Dhttp.proxyPort=8080
-Dhttps.proxyHost=webcache.sfbay
....

The local server is started with a proxy configuration and in this case adding a remote host will not work.



Comment 9 nouar38 2007-11-19 11:09:34 UTC
Created attachment 53193 [details]
domain1 xml file
Comment 10 nouar38 2007-11-20 09:03:26 UTC
if I add the different host names (no domain in them) in I.E (Internet Options /Connections/LAN settings /Advanced)
in Exceptions field seperated with semicolons, save.
exit IDE session, start IDE session, start the registered server, add the remote host ==>> no more the issue, the change
is taken into account as expected.
Comment 11 lh32469 2007-11-27 20:07:57 UTC
I downloaded 6, RC2 and this issue seems to have gone away.

I followed the same steps using the same AppServer on the 
same Server and the same client machine and it seems to
work fine now.
Comment 12 Vince Kraemer 2007-12-07 16:19:33 UTC
please close this issue if you forgot to earlier.  If this issue is still open,
please change the target milestone to reflect the current commitment.
Comment 13 lh32469 2007-12-07 20:11:39 UTC
Closing issue