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.
In my automated tests I execute IDE with argument -J-Dcom.sun.aas.installRoot to set path to appserver installation directory. Sometimes it doesn't work correctly. Appserver node in runtime is named "localhost:4848" instead of "Sun Java System Application Server 8.1" and several exceptions are in log. File Config/J2EE/InstalledServers/.nbattrs has not all neccessary information.
Created attachment 22588 [details] messages.log
Created attachment 22589 [details] .nbattrs
On Solaris and MacOSX it doesn't work at all. When I run IDE with this argument, no appserver node is added, so there isn't possible to run automated tests. Is there any workaround?
seems more a regression in the xml support of netbeans itself... Nothing changed in the plugin since FCS, and look at the root cause of the exception, as well as the other exceptions... You can try a workaround by adding a symbolic link of the app server dir under the netbeans/SunAppServer8.1 instead of the env variable, but again, the issue is elsewhere... Please, talk to some xml guys in NetBeans
The exception comes from org.openide.xml, reassigning.
Jesse, Yarda, any ideas?
I haven't any idea why what you did triggered this, but the JDK code in FactoryFinder.newInstance is wrong; cl = FactoryFinder.class.getClassLoader(); is meaningless since this will always set cl to null (if run as part of the JDK rt.jar). So file a JDK bug for that, then also patch the JDK source to be correct and continue with diagnosis.
able to reproduce.
http://www.netbeans.org/source/browse/serverplugins/sun/appsrv81/src/org/netbeans/modules/j2ee/sun/ide/j2ee/PluginProperties.java?r1=1.4&r2=1.5