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 96737 - WSDLException, SchemaException when add a new ComApp test case
Summary: WSDLException, SchemaException when add a new ComApp test case
Status: RESOLVED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: Composite Application (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jun Qian
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-28 04:37 UTC by _ hong_lin
Modified: 2007-05-25 00:43 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
message.log file includes detail info about the exceptions. (39.95 KB, text/plain)
2007-02-28 04:40 UTC, _ hong_lin
Details
My BluePrint1 project (32.85 KB, application/x-compressed)
2007-02-28 04:43 UTC, _ hong_lin
Details
Screen shot of the Error dialog (22.29 KB, image/png)
2007-02-28 04:46 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-02-28 04:37:20 UTC
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
Comment 1 _ hong_lin 2007-02-28 04:40:07 UTC
Created attachment 38959 [details]
message.log file includes detail info about the exceptions.
Comment 2 _ hong_lin 2007-02-28 04:43:18 UTC
Created attachment 38960 [details]
My BluePrint1 project
Comment 3 _ hong_lin 2007-02-28 04:46:32 UTC
Created attachment 38961 [details]
Screen shot of the Error dialog
Comment 4 Nam Nguyen 2007-02-28 09:06:45 UTC
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.

Comment 5 Alexei Mokeev 2007-02-28 16:14:52 UTC
Is it Beta stopper ? If not then please add EP551_WAIVER_APPROVED keyword
Comment 6 _ hong_lin 2007-02-28 18:17:06 UTC
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. 
Comment 7 Nam Nguyen 2007-02-28 19:37:06 UTC
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)
Comment 8 Alexei Mokeev 2007-03-01 19:40:02 UTC
Do not see any activity on this and assume that it is not a stopper for Beta.
Comment 9 Jun Qian 2007-03-03 23:20:52 UTC
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.
Comment 10 Alexei Mokeev 2007-03-05 17:27:39 UTC
Removed Beta EP551_WAIVER_APPROVED keyword - we are going forward to FCS.
Comment 11 _ hong_lin 2007-03-12 23:26:44 UTC
The bug is fixed in build 070312_1
Comment 12 _ hong_lin 2007-03-19 23:44:28 UTC
Sorry, I am trying to log a new bug, changed the Summary of this issue by 
accident. 
Comment 13 Jun Qian 2007-04-09 21:26:45 UTC
We need to rewrite the test driver code to use XAM model for FCS. Lowering the
priority for now.
Comment 14 Jun Qian 2007-05-25 00:43:45 UTC
Fixed in CB #903. 

Project reference is now supported in compapp test case creation. WSDL4J is
replaced by XAM-based model.