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 106175 - Build Failed if add a WSDL schema type JAXB Binding
Summary: Build Failed if add a WSDL schema type JAXB Binding
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: JAXB (show other bugs)
Version: 6.x
Hardware: PC All
: P3 blocker (vote)
Assignee: _ gmpatil
URL:
Keywords:
Depends on: 100868
Blocks:
  Show dependency tree
 
Reported: 2007-06-09 01:21 UTC by _ hong_lin
Modified: 2007-07-06 00:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
A sample BPEL project contains the loanRequestor.wsdl file (16.29 KB, application/x-compressed)
2007-06-09 01:32 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-06-09 01:21:16 UTC
Build: NB6.0 nightly 200706060000

Question: Can I add a WSDL schema type JAXB Binding when the WSDL file reference
an XML Schema file?

Steps to reproduce it:
1. Create a new Java Application JavaApplication1.
2. Add a JAXB binding to JavaApplication1 with the following config info: 
   Schema Name: "LoanRequest". 
   Schema File: Check "Select From Local File System". Browse to the location of
schema file "C:\Temp\LoanProcessing2\LoanRequestor\src\LoanRequestor.wsdl". 
   Package Name: "LoanRequest".
   Options: check "nv" and "readOnly".
   Schema Type: select "WSDL". Click Finish.
3. Got "Error while compiling Schemas".
4. The JAXB Binding is added. But when I open the LoanRequestor.wsdl file, under
Referenced Schemas, will see "Broken reference" error.

The compiler Output is:
xjc-typedef-target:
jaxb-code-generation:
Consider using <depends>/<produces> so that XJC won't do unnecessary compilation
Compiling
file:/C:/Users/Hong/Documents/NetBeansProjects/JavaApplication1/xml-resources/jaxb/CheckCredit/CreditReport.xsd
Writing output to
C:\Users\Hong\Documents\NetBeansProjects\JavaApplication1\build\generated\addons\jaxb
Consider using <depends>/<produces> so that XJC won't do unnecessary compilation
Compiling
file:/C:/Users/Hong/Documents/NetBeansProjects/JavaApplication1/xml-resources/jaxb/LoanRequest/LoanRequestor.wsdl
[ERROR]
C:\Users\Hong\Documents\NetBeansProjects\JavaApplication1\xml-resources\jaxb\LoanRequest\LoanRequestor.xsd
(The system cannot find the file specified)
unknown location

[ERROR] java.io.FileNotFoundException:
C:\Users\Hong\Documents\NetBeansProjects\JavaApplication1\xml-resources\jaxb\LoanRequest\LoanRequestor.xsd
(The system cannot find the file specified)
  line 9 of
file:/C:/Users/Hong/Documents/NetBeansProjects/JavaApplication1/xml-resources/jaxb/LoanRequest/LoanRequestor.wsdl

failure in the XJC task. Use the Ant -verbose switch for more details
C:\Users\Hong\Documents\NetBeansProjects\JavaApplication1\nbproject\xml_binding_build.xml:15:
unable to parse the schema. Error messages should have been provided
BUILD FAILED (total time: 0 seconds)
Comment 1 _ hong_lin 2007-06-09 01:32:23 UTC
Created attachment 43466 [details]
A sample BPEL project contains the loanRequestor.wsdl file
Comment 2 _ gmpatil 2007-06-12 01:58:46 UTC
Added dependency on 100868
Comment 3 _ gmpatil 2007-06-13 21:18:41 UTC
Yes, JAXB RI 2.1.3 supports this.
Inside tooling nested/Imported schema is not yet implemented, but in the plan.

Downgrading this to P3
Comment 4 _ gmpatil 2007-06-14 01:48:43 UTC
Fixed. 
Please verify in build on after 1616.
Comment 5 _ hong_lin 2007-07-06 00:04:48 UTC
Verified the fix is in NB 6.0 nightly build 200707051200