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.
[20040713] When an user does not have his /META-INF/context.xml made writable uder the VSS versioning system then only opening of project customizer/run panel causes a strange dialog message to appear. The dialog says: Cannot save configuration data for {0} to {1} This is likely cause by the fact that the context.xml file is in read-only form and the customizer tries to open it for writing. Strange thing is that the customizer causes the message even if you do not modify any value. To reproduce: 1) create a WP under a VSS workdir 2) setup the VSS in the IDE 3) ensure you do not have the context.xml file checked out 4) open project customizer 5) click to Running Project node 6) click to general node 7) click to Runninf project node again => the mentioned dialog appears (a screenshot is attached - just for sure).
Created attachment 16248 [details] The dialog screenshot
Pavel, I have fixed saving META-INF/context.xml - it is saved together with whole project configuration only if the context path is modified. The another problem - strange warning when the file is read only - should be fixed in method save() in j2ee.deployment.config.ConfigurationStorage. I think in this case the method should throw IOException with appropriate error message and it should be caught and processed in some of higher levels. As the change could cause unwanted consequences or side-effects please make necessary changes in ConfigurationStorage according to your consideration. Then a shall finish the fix.
Created attachment 17705 [details] This is one of possible solutions
Created attachment 17706 [details] This is one of possible solutions (cont.)
The problem was caused by apostrophe in message (Can't ...) placed in Bundle.properties that caused improper handling of parameters of the message.
Pavle F, it would be more useful if you attached the diff for the solution, not the whole source files. Can you please do that? Thanks.
Already fixed
Previous message was added by mistake.
F. Checking in ConfigSupportImpl.java; /cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/config/ConfigSupportImpl.java,v <-- ConfigSupportImpl.java new revision: 1.32; previous revision: 1.31 done Checking in ConfigurationStorage.java; /cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/config/ConfigurationStorage.java,v <-- ConfigurationStorage.java new revision: 1.40; previous revision: 1.39 done