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.

Bug 51952 - <web-services> added to http://www.netbeans.org/ns/web-project/1
Summary: <web-services> added to http://www.netbeans.org/ns/web-project/1
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 4.x
Hardware: All All
: P1 blocker (vote)
Assignee: Radko Najman
URL:
Keywords: ARCH
Depends on:
Blocks: 53364
  Show dependency tree
 
Reported: 2004-11-30 18:33 UTC by Jesse Glick
Modified: 2006-03-24 12:49 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2004-11-30 18:33:19 UTC
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.
Comment 1 Pavel Buzek 2004-12-01 12:46:53 UTC
will fix ASAP
Comment 2 Pavel Buzek 2004-12-01 14:44:35 UTC
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.
Comment 3 Jesse Glick 2004-12-01 16:49:37 UTC
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.
Comment 4 Radko Najman 2005-01-04 15:56:37 UTC
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.
Comment 5 zikmund 2005-04-01 08:37:28 UTC
v
Comment 6 Jesse Glick 2005-04-05 00:10:51 UTC
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.
Comment 7 Radko Najman 2005-04-05 10:24:26 UTC
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
Comment 8 Pavel Buzek 2005-04-05 14:39:17 UTC
I reviewed the fix and agree with it.
Comment 9 Jesse Glick 2005-04-05 15:37:28 UTC
OK, thanks.

BTW remember that the changes in www/www/ns/ are not associated with a branch
and need not be merged.
Comment 10 Petr Blaha 2005-04-06 10:03:56 UTC
verified in trunk build
Comment 11 Radko Najman 2005-04-06 12:54:24 UTC
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
Comment 12 Petr Jiricka 2005-04-08 13:34:08 UTC
Now I see that 2.xsd and 3.xsd in  www/www/ns/ were added as binary files -
isn't this a problem?
Comment 13 Radko Najman 2005-04-08 13:48:53 UTC
Probably it is. It seems it was caused by NB CVS module which recognized these
files as binary files.
Comment 14 Radko Najman 2005-04-11 12:33:59 UTC
Fixed, binary files replaced by textual.
Comment 15 zikmund 2005-07-12 16:13:20 UTC
v