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.
build: Gavotte milestone build 7b Steps to reproduce it: 1. In IDE, create a BluePrint1 sample. 2. Create a BpelModule1 project under BluePrint1. 3. Select BluePrint1, Add BpelModule1 as one of its "Project References". 4. Add LoanApplication sample schema into BpelModule1. 5. Open "purchaseOrder.xsd" under BluePrint1 into schema editor. 6. Right-click "Referenced Schemas", select "Add -> Import". 7. Import "newLoanApplication.xsd" under BpelModule1. 8. In Projects window, expand "BluePrint1Application". Right-click "Test" node, select "New Test Case". 9. In "New Test Case" wizard, accept default test case name, click Next. 10. In "Select the WSDL Document" panel, expand "BluePrint1", select "InventoryService.wsdl". Click Next. 11. An Error dialog pops up: Fail to load WSDL from file: C:\Documents and Settings\HONG\BluePrint1\BluePrint1\src\InventoryService.wsdl WSDLException (at /definitions/types/xsd:schema/xs:schema):faultCode=OTHER_ERROR:An error occurred trying to resolve schema referenced at 'BpelModule1/newLoanApplication.xsd', relative to 'file:C:/Documents and Settings/HONG/BluePrint1/src/purchaseOrder.xsd'.: This file was not found: file:C:/Documents and Settings/HONG/BluePrint1/BluePrint1/src/BpelModule1/newLoanApplication.xsdFail to load schema types from file:C:\Documents and Settings\HONG\BluePrint1\BluePrint1\src\InventoryService.wsdl
Created attachment 38959 [details] message.log file includes detail info about the exceptions.
Created attachment 38960 [details] My BluePrint1 project
Created attachment 38961 [details] Screen shot of the Error dialog
In order to reference cross-project from test input/output document at design time, compapp project need to provide ProjectCatalogSupport instance in its lookup. Furthermore, this compapp project "BluePrint1Application" should also have direct references to all projects in the reference closure, in this case BpelModule1.
Is it Beta stopper ? If not then please add EP551_WAIVER_APPROVED keyword
According to Nam, comapp does not support cross-project reference testing yet. So this is not a Beta showstopper. However, I would like to hear the opinion from Tian.
Note, please ignore my comment about ProjectCatalogSupport requirement and direct project references to 'BpelModule1'. From the tip of the stack, we can see that compapp.test.wsdl.WsdlSupport does not use XAM models and resolvers. This is the cause of the resolver failure: WSDLException (at /definitions/types/xsd:schema/xs:schema): faultCode=OTHER_ERROR: An error occurred trying to resolve schema referenced at 'BpelModule1/newLoanApplication.xsd', relative to 'file:C:/Documents and Settings/HONG/BluePrint1/BluePrint1/src/purchaseOrder.xsd'.: This file was not found: file:C:/Documents and Settings/HONG/BluePrint1/BluePrint1/src/BpelModule1/newLoanApplication.xsd: java.io.FileNotFoundException: This file was not found: file:C:/Documents and Settings/HONG/BluePrint1/BluePrint1/src/BpelModule1/newLoanApplication.xsd at com.ibm.wsdl.util.StringUtils.getContentAsInputStream(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source) ..... at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at org.netbeans.modules.compapp.test.wsdl.WsdlSupport.<init>(WsdlSupport.java:75)
Do not see any activity on this and assume that it is not a stopper for Beta.
Try validating inventoryService.wsdl and you will get the following error: XML validation started. C:/Documents and Settings/jqian/Desktop/96737/BluePrint1/BluePrint1/src/purchaseOrder.xsd:7,4 Warning: schema_reference.4: Failed to read schema document 'BpelModule1/newLoanApplication.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. C:/Documents and Settings/jqian/Desktop/96737/BluePrint1/BluePrint1/src/purchaseOrder.xsd:18,4 Error: src-resolve: Cannot resolve the name 'ns:AddressType' to a(n) 'type definition' component. 1 Error(s), 1 Warning(s). XML validation finished.
Removed Beta EP551_WAIVER_APPROVED keyword - we are going forward to FCS.
The bug is fixed in build 070312_1
Sorry, I am trying to log a new bug, changed the Summary of this issue by accident.
We need to rewrite the test driver code to use XAM model for FCS. Lowering the priority for now.
Fixed in CB #903. Project reference is now supported in compapp test case creation. WSDL4J is replaced by XAM-based model.