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 113562 - Services does not recognize newly created domain
Summary: Services does not recognize newly created domain
Status: RESOLVED INCOMPLETE
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@serverplugins
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-23 00:36 UTC by davisn
Modified: 2009-06-06 00:07 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description davisn 2007-08-23 00:36:28 UTC
-The Services Servers does not recognize a newly created domain which was created with asadmin command line
-The server is only recognized if user delete the User .netbeans configuration directory

STEPS TO REPRODUCE:
1. Install nightly Netbeans 6.0 (08/21/2007) with glassfish V2-b58b
2. Start Netbean IDE
3. Create domain2 with command below:
      asadmin create-domain --user admin --adminport 2222 --instanceport 2020 domain2
4. Quit and restart Netbean IDE
BUG:
    domain2 does not appear in the Services list
Comment 1 Nitya Doraisamy 2007-08-23 02:17:31 UTC
Is the newly created domain not in the list of domains drop down list in the Add Server Wizard
or are you expecting to see the server node under the Services?
Comment 2 davisn 2007-08-23 04:17:58 UTC
My expectation is that after restart, Netbean should be able to detect all default servers which located under domains
directory - nice to have 
Comment 3 Nitya Doraisamy 2007-08-23 07:01:32 UTC
I don't understand the issue. What do you mean by detect. Currently, the Add Server wizard domains drop down list does
show all the domains under the domains directory. If you are not seeing all the domains(under the domains directory) in
the dropdown list, that would be a bug. 

Or are you expecting all the domains under the domains directory to be registered in the IDE without any user action.
If that is the case, my vote would be against that. I think registering the default domain(which we do) is sufficient.
Also, if you had created the additional domain from inside the IDE, it would have been added to the Services list of
servers.
Comment 4 Nitya Doraisamy 2007-08-29 19:19:15 UTC
From the discussion in iteam it appears that the behavior is as expected. 
- Server has multiple domains in the default location
- Starting IDE with clean userdir results in the domains in default location being registered in IDE.

Vince, any comments
Comment 5 Vince Kraemer 2007-08-29 20:23:33 UTC
The automatic registration of domains from the default domain directory only happens when a userdir is being created...
after the initial detection additional domains must be registered by the user....

so the behavior that davisn sees is "expected"

the behavior that davisn is expecting is an enhancement that would be worth looking at for the future.
Comment 6 Vince Kraemer 2008-01-31 18:25:03 UTC
I think this is doable for 6.1.
Comment 7 Vince Kraemer 2008-04-26 03:38:46 UTC
missed the mark.
Comment 8 Vince Kraemer 2008-10-18 03:39:08 UTC
this may be integrated into the v3 plugin