October 14, 2010

"Failed to open source schema" when migrating ESB 10g project to Mediator 11g


We migrated an ESB 10g project successfully to 11g, and all routing rules were migrated successfully. However, when we tried creating a mapper (i.e., xsl) file, we received the following error through JDeveloper.

Failed to open the source schema:
Duplicated definition for: 'SystemIDType'
Duplicated definition for: 'ActionCodeType'
Duplicated definition for: 'DataEventCodeType'
Duplicated definition for: 'PriceTypeCodeType'

When opening up the mapper file, the left hand side had the following mapping source:

<source type="WSDL">
<schema location="http://namespaceserver/AIAComponents/ApplicationObjectLibrary/MyApp/Address/CreateAddressReqABCSImpl.wsdl"/>
<rootElement name="CreateAddressBookEntry" namespace="http://ns.ipnweb.com/MyApp/AddressService/20090101"/>

The right hand side had the following:

<target type="WSDL">
<schema location="http://soa11gserver:8001/soa-infra/services/EBS/CustomerPartyEBS/CustomerPartyEBS_ep?WSDL"/>
<rootElement name="CreateCustomerPartySyncEBM" namespace="http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/CustomerParty/V2"/>

There was nothing syntactically wrong the XSL file. We kept traversing down the tree, looking for issues with any of our imported WSDLs and XSDs. It turned out that one of the XSDs was missing a rather critical tag.


On of our imported schemas was missing the following tag from the top:
We added the tag, pushed out the schema to our namespace server, and the issue was resolved.
<?xml version="1.0" encoding="utf-8" ?>


  1. Calibre 36 movement as the basis for replica rolex the new series of outstanding members, completely based uk replica watches on the needs of modern life and design. To ensure the best innovation of siliceous gossamer precision, only a barrel can be at four Hz (28800 per hour time of vibration) to provide power reserves for more replica watches uk than 100 hours, to ensure a longer operation time.