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.
BPEL project validation. when two artifacts resolved from one source file, like one BPEL file, or one WSDL file, or one XSD file, will result in duplicate values validation needs to ERR on such situations. A duplicate is identified if an element's NCName and it's namespace matches exactly with another one. BPEL SE engine throws the following for the attached deployment. To look at the specific files deployed to the engine, i think you need to look in the MSNET.jar within the MS.zip. Component: com.sun.bpelse-1.0-2 ERROR:(BPELSE)Service unit failed to load deployment error: sch-props-correct.2: Duplicate global type: QuoteData@http://ws.cdyne.com/ (Original global type found in file: null) Detailed Message : 1: SEVERE :Duplicate global type: QuoteData@http://ws.cdyne.com/ (Original global type found in file: null)
Created attachment 35119 [details] attachment from the user who reported this bug to the engine
Please provide localization of problem. Please point to concrete declarations and files that throw a problem. From current description I need to perform to many steps and analysis of attached files without any additional information from you. You need to describe the problem as much as possible when you file a bug.
Created attachment 35150 [details] wsdl1
Created attachment 35151 [details] wsdl2
attached the WSDL files that were the source of this problem. These files define QuoteData two times and hence the ambiguity. and this same extension can be drawn XSD files that were imported into the WSDLs.
Ok, I believe you mean that QuoteData complex type in inline xsd definition is defined in both wsdl files. This type is defined in the same namespace in both wsdl files. So there is no way to find appropriate type when one used qname {http://ws.cdyne.com/}QuoteData. Yes, this is a problem. We can provide some assistance with such issues. But this is not a bug for BPEL . This is RFE.
This is SA00014 rule in static analysis rule set.
Need tofix it in FCS
*** Issue 92660 has been marked as a duplicate of this issue. ***
*** Issue 92661 has been marked as a duplicate of this issue. ***
*** Issue 97601 has been marked as a duplicate of this issue. ***
Obsolete milestone, please reevaluate
For Sierra.
Changed target milestone from Sierra to 6.1 in order to display correct info on NB 6.1 dashboard
SA00014: A WS-BPEL process definition MUST be rejected if the imported documents contain conflicting definitions of a component used by the importing process definition (as could be caused, for example, when the XSD redefinition mechanism is used).
It is worth noting, that it is feasible to treat really identical types declarations as warnings, not errors. Real conflicts (i.e. identical names, different contents) should be treated as errors, of course.
*** Issue 134112 has been marked as a duplicate of this issue. ***
It worths to implement.
fixed.
Created attachment 61478 [details] Test project
tested and verified the attached project using NetBeans IDE 6.5 RC1 (Build 200810151402) and the expected warning message is thrown during build time. init: clean: init: Created dir: C:\bpprojects\wsdlwithsameelement\SA000014\build C:/bpprojects/wsdlwithsameelement/SA000014/src/SynchronousSample.bpel:3: 1 WARNING: Documents imported in the process contain identical definition of the component "QuoteDataIdentical": C:/bpprojects/wsdlwithsameelement/SA000014/src/SynchronousSample.xsd:16: 4 C:/bpprojects/wsdlwithsameelement/SA000014/src/SynchronousSampleDiff.wsdl:21: 8 C:/bpprojects/wsdlwithsameelement/SA000014/src/SynchronousSample.bpel:22: 4 WARNING: The process has duplicate imports. C:/bpprojects/wsdlwithsameelement/SA000014/src/SynchronousSample.bpel:3: 1 WARNING: Documents imported in the process contain identical definition of the component "requestMessageIdentical": C:/bpprojects/wsdlwithsameelement/SA000014/src/SynchronousSample.wsdl:23: 4 C:/bpprojects/wsdlwithsameelement/SA000014/src/SynchronousSampleIdentical.wsdl:19: 4 C:/bpprojects/wsdlwithsameelement/SA000014/src/SynchronousSample.bpel:3: 1 ERROR: Documents imported in the process contain conflicting definition of the component "QuoteDataDiff": C:/bpprojects/wsdlwithsameelement/SA000014/src/SynchronousSample.xsd:36: 4 C:/bpprojects/wsdlwithsameelement/SA000014/src/SynchronousSampleDiff.wsdl:40: 6 C:/bpprojects/wsdlwithsameelement/SA000014/src/SynchronousSample.bpel:3: 1 ERROR: Documents imported in the process contain conflicting definition of the component "requestMessageDiff": C:/bpprojects/wsdlwithsameelement/SA000014/src/SynchronousSample.wsdl:27: 4 C:/bpprojects/wsdlwithsameelement/SA000014/src/SynchronousSampleIdentical.wsdl:23: 4 Found validation error(s). BUILD FAILED (total time: 0 seconds)