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.
Created attachment 107883 [details] Log file Product Version: NetBeans IDE Dev (Build 20110411-95fa2f6ba3a6) Java: 1.6.0_23; Java HotSpot(TM) 64-Bit Server VM 19.0-b09 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb) Userdir: C:\Projects\netbeans\web-main\nbbuild\testuserdir 1. Run nb with clear userdir. 2. Open existing web project. 3. Try to resolve missing server. 4. Register glassfish but it doesn't appear in registered server list. In the log there is an exception: org.openide.filesystems.FSException: Cannot rename file GlassFishEE6/Instances/.nbattrs~ in C:\Projects\netbeans\web-main\nbbuild\testuserdir\config to GlassFishEE6/Instances/.nbattrs. New file exists: false. Rename result: false. So I predict there is something wrong with windows filesystem. Log is attached.
There are similar message being generated by the j2eeserver module during start-up. Cannot rename file J2EE/InstalledServers/.nbattrs~ in C:\Projects\netbeans\web-main\nbbuild\testuserdir\config to J2EE/InstalledServers/.nbattrs. New file exists: false. Rename result: false. prior to the cited message. So, both modules are probably doing something wrong in their rename code... or the FS code is seriously messed up on Windows (though that is pretty doubtful).
this looks like issue 192164...
also similar to issue 193278
it looks like issue 191689 is related, too...
The root cause of this is the fact that the file .nbattrs~ fails to get renamed to .nbattrs The setAttribute method seems to be an important part of this and has an open issue against it... issue 192164. Marking this issue as a dup of that and then raising the priority on the that issue. *** This bug has been marked as a duplicate of bug 192164 ***
*** Bug 199193 has been marked as a duplicate of this bug. ***