User library definitions are removed from nbproject/private/private.properties on startup of an EJB-project within an
EAR project, so that the project can't be compiled after a clean. When opening the properties dialog of the
ejb-project and presseing the "Save" button, the private.properties file is correctly regenerated, so the build works
until the next start of the IDE.
This problem was not present from the beginning, but only after several weeks of usage, so I can't give more hints on
how to reproduce this problem.
Created attachment 62719 [details]
There was a fix related to lib.file.xxx properties. The fix was included in a patch for 6.1.
Also, could you zip nbproject folder before and after this problem and attach it here?
If the problem happened after a while it may help to try:
* delete (perhaps backup first) nbproject/private folder
* start NB with clean userdir (nb --userdir /some/path)
Deleting and restarting the IDE doesn't help. The user libraries are still missing in private/private.properties and can
only be fixed for the session as I described above. Find attached the zips of the nbproject folder before and after the
start of Netbeans.
Created attachment 62779 [details]
Before start of the IDE
Created attachment 62780 [details]
After start of the IDE
This problem exists in ejb, ear and appclient projects which do not use "Libraries Folder". It is related to issues
129316 and 134452 which were not properly fixed (apart from web project).
How to reproduce:
* create one of above mentioned projects without Libraries Folder
* add for example Struts library (that is a library which has >1 jars) to compilation classpath (in case of ear add
library to packaging panel)
* notice that private.properties file contains libs.XXX.classpath.libfile.XXX
* restart IDE and all libs.XXX.classpath.libfile.XXX will be removed
Possible workaround is to configure projects to use Libraries Folder.
Fixed in fd62ed665a24 (will be pushed later today).
Integrated into 'main-golden', available in NB_Trunk_Production #271 build
User: David Konecny <firstname.lastname@example.org>
Log: #137071 - User library definitions are removed from nbproject/private/private.properties on startup
I would like to ask you to verify this fix works in trunk builds. This way I can follow-up and make it appear in NB 6.1
Patch (3) release.
I just want to let you know, that the latest update indeed fixed the problem. Thank's for your efforts!
Please note that NetBeans 6.1 Patch3 cut-off is going to happen on close of
business August 5th. If you would like to have bugfix for this issue as part of
NetBeans 6.1 Patch3, then this issue must have information about bugfix' trunk
changeset and it's status must be "VERIFIED".
ladermann did verify this issue just forgot to update the state.
I've transplanted the changeset http://hg.netbeans.org/main/rev/fd62ed665a24 into release61_fixes repository as