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.
Currently there is always new instance of J2eePlatformImpl created and it is possible risk for attached listeners and currently it's causing inconsistencies in wizard - there is different set of libraries displayed in Server Manager and in project's libraries view right after adding new server instance. Things are OK after restart. It is caused by the fact that some code is asking for instance properties BEFORE instance is returned from wizard iterator's instantiate() method!
See related issue 61985
I will do the same caching as tomcat does. Properties are not initialized when the platform is created but this can be solved by listening for changes in InstanceProperties and adding the additional libraries when the property "server" is available. I think that 61985 is not needed. Only a small fix in InstanceProperties (concurrent modification in fireProprtyChange, can be solved by cloning the listeners before it iterates over them).
fixed as described above
Verified in trunk