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.
I notice that the original schema for http://www.netbeans.org/ns/web-project/1, in web/project/src/org/netbeans/modules/web/project/resources/web-prj.xsd, had the <web-services> element added to it. This means that web app project.xml files created by NB 4.0 are invalid according to schema when checked against NB 4.1! This is very bad. Schemas should never have any semantic changes, much less incompatible ones - you have to create a new schema for a new namespace, such as http://www.netbeans.org/ns/web-project/2, as j2seproject did, and find some way to upgrade old project.xml files to use the new namespace.
will fix ASAP
Radko is merging the support for multiple compilation units which will require incompatible change of project file anyway so he will try to make it work for both 4.0 projects w/o web services and projects created in trunk build with web services. This should be done soon so I see no point in changing the project file twice. Jesse, let me know if this does not work.
Fine; you just need to fix it before any public beta. I don't think it's necessary to support migrating projects created in 4.1 dev builds before the multi-src-root merge, but of course you can if you like. Would be polite to notify nbusers of any issues that might be visible to people using dev builds.
New schema for a new namespace has been already created. Upgrade of old project.xml file will be solved as a part of issue #52348.
v
This was not fixed. web/project/src/org/netbeans/modules/web/project/resources/web-prj.xsd still refers to <web-services>, and does not match www/www/ns/web-project/1.xsd Also, there are two new schemas (web-prj2.xsd and web-prj3.xsd) and neither of them is published in www/www/ns/web-project/ as all public schemas must be.
Fixed in trunk. /cvs/web/project/src/org/netbeans/modules/web/project/resources/web-prj.xsd,v <-- web-prj.xsd new revision: 1.9; previous revision: 1.8 Checking in 2.xsd; /cvs/www/www/ns/web-project/2.xsd,v <-- 2.xsd initial revision: 1.1 Checking in 3.xsd; /cvs/www/www/ns/web-project/3.xsd,v <-- 3.xsd initial revision: 1.1
I reviewed the fix and agree with it.
OK, thanks. BTW remember that the changes in www/www/ns/ are not associated with a branch and need not be merged.
verified in trunk build
Fixed in release41 branch. /cvs/web/project/src/org/netbeans/modules/web/project/resources/web-prj.xsd,v <-- web-prj.xsd new revision: 1.8.16.1; previous revision: 1.8
Now I see that 2.xsd and 3.xsd in www/www/ns/ were added as binary files - isn't this a problem?
Probably it is. It seems it was caused by NB CVS module which recognized these files as binary files.
Fixed, binary files replaced by textual.