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.
Summary: | WSDLException, SchemaException when add a new ComApp test case | ||
---|---|---|---|
Product: | soa | Reporter: | _ hong_lin <hong_lin> |
Component: | Composite Application | Assignee: | Jun Qian <jqian> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | jqian, nnguyen, tli |
Priority: | P3 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
message.log file includes detail info about the exceptions.
My BluePrint1 project Screen shot of the Error dialog |
Description
_ hong_lin
2007-02-28 04:37:20 UTC
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. |