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.
I get an exception in the Add Server Instance wizard when i choose to register a default domain and the domain is not there [the domain is not there because i renamed the domain1.xml config file to see what would happen] Steps: 1. I locate my app server, choose default domain in wizard and click Next. 2. I get an exception : java.lang.reflect.InvocationTargetException 3. I click Ok to close the error box. 4. I am still on Enter platform directory path, but i dont change my selection [keeping default selected] and press Next. 5. I do not get the exception again, and the wizard skips step 3 Select Domain and goes straight to step 4 Enter Domain Admin Info 6. I click Finish. The instance is added to my list in the Runtime window. Now I right-click on instance in Runtime window and I get an NPE, which means i cannot remove it from the Runtime window. I go to Server Manager and click the instance. I get another NPE. I close the NPE, the instance is selected in the Server Manager. I click remove to remove the instance. It seems that instead of the Exception when the IDE cannot locate the domain.xml, there should be a dialog that says the IDE cannot locate the default domain and instructing the user to either select another domain type or to check the configuration for the default domain. Attaching Exception
Created attachment 26699 [details] exception when trying to register default domain
At what point did you rename the domain.xml file? Is it at "step zero"?
could duplicate. weak test in Util.rootOfUsableDomain(File)
http://serverplugins.netbeans.org/source/browse/serverplugins/sun/appsrv81/src/org/netbeans/modules/j2ee/sun/ide/j2ee/ui/Util.java?r1=1.3&r2=1.4