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 164893 - validation failed for wsdl files generated by cloning wsdl ports
Summary: validation failed for wsdl files generated by cloning wsdl ports
Status: REOPENED
Alias: None
Product: soa
Classification: Unclassified
Component: Composite Application (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tientien Li
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-11 21:37 UTC by Tientien Li
Modified: 2009-12-03 17:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
BPEL module with 2 XSDs (20.20 KB, application/x-compressed)
2009-05-11 21:59 UTC, kkao
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tientien Li 2009-05-11 21:37:26 UTC
After cloning a wsdl port, the Catalong.xml was added xsd references with incorrect uri (in red):

<?xml version="1.0" encoding="UTF-8" standalone="no"?><catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
prefer="system"><nextCatalog catalog="src/jbiServiceUnits/META-INF/JMSBCXSDTestBPELModule/catalog.xml"/>
    <system systemId="http://emis.sfbay:2080/xsd_vjcaps-20090220-092426/Pubtool.PubtoolTest.xsd"
uri="src/emis.sfbay_2080/xsd_vjcaps-20090220-092426/Pubtool.PubtoolTest.xsd"/>
    <system systemId="http://emis.sfbay:2080/xsd_vjcaps-20090220-092426/IHPrimitives.xsd"
uri="src/emis.sfbay_2080/xsd_vjcaps-20090220-092426/IHPrimitives.xsd"/>
</catalog>

The problem causing validation to fail for the generated CompApp project wsdl.
Comment 1 kkao 2009-05-11 21:59:09 UTC
Created attachment 81925 [details]
BPEL module with 2 XSDs
Comment 2 Tientien Li 2009-06-02 22:50:49 UTC
It looks like BPEL project changed the way how external wsdl/xsd files are imported. Before, the BPEL project copies
external wsdl/xsd into its own source directory. But now, it create a wrapper wsdl and point to the external wsdl/xsd
using catalog entries. So, when cloning a bpel wsdl, we will have to consider new use cases.

However, it is not clear to me what to do with cached external wsdl/xsd files? IMO, CompApp should not copy cached
external wsdl/xsd files into its local source directory. So, I think, in this case, we should reject the clone wsdl
request because the wsdl file is not local within the bpel project, but an external reference.
Comment 3 Tientien Li 2009-06-02 23:27:28 UTC
Actually, the example filed is a little different. I thought it was created by using wsdl/xsd import, but now I am not
sure how it was created. It has xsd references in project catalog, but pointing to files in the BPEL source directory.
The SU jar generated by the BPEL project contains two copies of these xsd files: a version in the source directory and
the other cached in META-INF and pointed to by the project catalog. I think this confused CompApp project. 

I filed a new ticket for the case of cloning port defined by external wsdl/xsd references:

http://www.netbeans.org/issues/show_bug.cgi?id=166440

Comment 4 Tientien Li 2009-06-05 20:42:53 UTC
Fix checked in into the open source branch,

http://hg.netbeans.org/soa-dev65/rev/98362f785409
Comment 5 sbondada 2009-12-03 17:25:29 UTC
Open the attached project.
Create a compapp.
Clone a wsdl port
Validating the project throws 1 error and 1 warning.
Tested on GFESBv2.2