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.
Impossible to open a project: Error parsing C:\WORK\nbextra\data\TravelReservationService\TravelReservationServiceApplication\nbproject\project.xml: cvc-type.3.1.3: The value 'CAPS.asa:sun-bpel-engine' of element 'artifact-type' is not valid. Product Version: NetBeans IDE Dev (Build 200807230806) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05 System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb) Checked with 20080710 - works fine.
Is it sierra or trunk? Please attach the project.
Created attachment 65376 [details] test projects
inside TravelReservationService folder - TravelReservationServiceApplication project build from http://bits.netbeans.org/download/trunk/nightly/latest/
It is *comp* app project, not bpel. Reassign to right category...
*** Issue 141613 has been marked as a duplicate of this issue. ***
According to ant-project-references.xsd (defined in project.ant), element 'artifact-type' should have a type of xsd:NCName, which compapp project's project.xml doesn't conform to. I think we have two options here: The easier fix is to define a new schema for compapp project's project.xml and register it in NB's ProjectXMLCatalog. The correct fix, though, should be changing compapp project system to make its project.xml consistent with the existing schema. In this case, we have to take care of backward compatibility issue probably by auto-migrating old compapp projects. Tien, any comments?
I don't think this is a REGRESSION, but as a result of some new project validation features added. Anyway, since a validation has been added for this, we must replace ":" with a legal char, e.g., ".". However, I am not sure when the validation is done in the project open process. If it is done before the open hook, then we have to find another way to update old project.xml for existing projects.
NB6.5 added project schema validation about 2 weeks ago. The validation will block the project loading if it detects any error. Because SOA projects has a invalid character in its artifact-type field, all 6.1 compapp projects are now blocked and not loadable in 6.5. We think it will be better to allow these projects to still load in 6.5 but with a error badge to indicate validation problems. This way, we can introduce code to fix these validation problems automatically within the NetBeans. Otherwise, we will have to ask the user to manually edit the project.xml files for all projects created in 6.1 to fix these problems.
Jesse, Will it be possible to allow projects that failed project schema validation be still loadable in 6.5 but with an error badge to indicate validation problems. This will allow us to auto fix the validation problems without requiring manual changes of 6.1 projects from our users. Thanks, -- Tientien Li
ant-project-references/[12] specifies xsd:NCName as the permitted range of <artifact-type>. If you mistakenly let loose projects into the field using an invalid artifact type value in the past, the only possible fix now is to relax the character range (in project.ant) to permit ':', and correspondingly document AntArtifact.getType. (I don't believe the artifact type is used in any properties files etc., so it need not be too restrictive.) If this is the case, please reassign to ant/project.
Jesse, Yes, relaxing the artifact-type definition will solve this problem. It will allow projects created in 6.1 to continue working in 6.5. Thanks, -- Tientien Li
Changing to xsd:token seems to let the project be opened. Please verify when you see the changeset in main. core-main #a882b1af9145
Jesse, Great!! I have not seen this change in main yet... but will try it out when it does. Thanks..
It is in main now.
Yes, it works! Old projects from NB 6.1 and 6.0 are now working in 6.5 without problems. Thanks again Jesse!
verified in 080802
Integrated into 'main-golden', available in build *200808021401* on http://bits.netbeans.org/dev/nightly/ Changeset: http://hg.netbeans.org/main/rev/a882b1af9145 User: Jesse Glick <jglick@netbeans.org> Log: #141330: permit colon (:) in AntArtifact.type XML storage.