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 97222 - Validation fail if project A reference project B, and B reference project C
Summary: Validation fail if project A reference project B, and B reference project C
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Catalog Support (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Nam Nguyen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-05 18:18 UTC by _ hong_lin
Modified: 2007-09-25 01:34 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
sample projects are included. BpelModule1 is under BluePrint1 folder. (68.32 KB, application/x-compressed)
2007-03-05 18:19 UTC, _ hong_lin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ hong_lin 2007-03-05 18:18:12 UTC
Build: Gavotte build 070301_25

Validation fail if schema a.xsd in project A references b.xsd in project B, and
b.xsd references c.xsd in project C.

Steps to reproduce it:

1. Create sample project BluePrint1, SynchronousSample.
2. Create a BPEL Module BpelModule1. Add sample XML Schema
newLoanApplication.xsd to BpelModule1.
3. Add Project References: Project SybchronousSample reference BluePrint1.
BluePrint1 reference BpelModule1.
4. Open Inventory.xsd under BluePrint1.
5. Right-click "Reference Schema", select "Add -> Import" to import
"newLoanApplication.xsd" under BpelModule1. 
6. Right-click "Complex Types", select "Add Complex Type". 
7. In "Complex Type" dialog, check "Use Existing Definition" radio button. In
the tree field, expand "Referenced Schema -> import {http://.../LoanApplication}
-> Complex Types". Select "CarType". Click OK. A new Complex Type
"newComplexType (extends: CarType)" is added.
8. Open "SynchronousSample.xsd" under SynchronousSample project.
9. Right-click "Reference Schema", select "Add -> Import" to import
"Inventory.xsd" under BluePrint1. 
10. Right-click "Element", select "Add Element".
11. In "Element" dialog, check "Use Existing Type" radio button. Expand
"Referenced Schemas -> import {http://.../inventory} -> Complex Types", select
"newComplexType (extends:CarType)". Click OK.
12. Save changes.
13. Validate "SynchronousSample.xsd" file.
==> Will get the following error:
C:/Documents and
Settings/HONG/BluePrint1/BluePrint1/BluePrint1/src/inventory.xsd:42,12
Error: src-resolve: Cannot resolve the name 'ns0:CarType' to a(n) 'type
definition' component.
Comment 1 _ hong_lin 2007-03-05 18:19:47 UTC
Created attachment 39180 [details]
sample projects are included. BpelModule1 is under BluePrint1 folder.
Comment 2 Nam Nguyen 2007-03-06 00:13:16 UTC
This has been fixed.
Comment 3 tonybeckham 2007-03-29 23:53:41 UTC
The fix has been verified with Hula build 200703271800 and Gavotte
ide-gavotte-070313.zip.  Changing status to VERIFIED