MDS-00054 Error when using Ant to Compile a Composite having a Business Rule Dictionary (Doc ID 1143723.1)

Last updated on JUNE 10, 2016

Applies to:

Oracle SOA Platform - Version 11.1.1.2.0 to 11.1.1.3.0 [Release 11gR1]
Information in this document applies to any platform.
***Checked for relevance on 11-Jan-2012***


Symptoms

You are trying to compile a composite that has a business rule dictionary. The composite compiles in JDeveloper but when using ANT the compilation fails with the following error.

[oracle@soa]$ ant -f $MW/jdeveloper/bin/ant-sca-compile.xml -Dscac.input=/home/jdeveloper/mywork/Application2/SubjectRules/composite.xml

Buildfile: /home/jdeveloper/mywork/Application2/SubjectRules/composite.xml

scac:
[scac] Validating composite : '/home/jdeveloper/mywork/Application2/SubjectRules/composite.xml'
[scac] oracle.fabric.common.wsdl.XSDException: Error loading schema from fi
le://home/jdeveloper/mywork/Application2/SubjectRules/MarkingFromCharge_DecisionService.wsdl [C
ause=Error in getting XML input stream: oramds:/soa/shared/rules/BpelProcess.xsd
: oracle.mds.exception.MDSException: MDS-00054: The file to be loaded oramds:/so
a/shared/rules/BpelProcess.xsd does not exist.]
[scac] at oracle.fabric.common.wsdl.SchemaBuilder.loadEmbeddedSchemas(S
chemaBuilder.java:496)
[scac] at oracle.fabric.common.wsdl.SchemaBuilder.loadSchemasFromWSDL(S
chemaBuilder.java:365)
[scac] at oracle.fabric.common.wsdl.SchemaBuilder.loadAllSchemas(Schema
Builder.java:202)
[scac] at oracle.fabric.common.wsdl.SchemaManager.loadAllXSD(SchemaMana
ger.java:137)
[scac] at oracle.fabric.common.wsdl.SchemaManager.buildXDKSchema(Schema
Manager.java:330)
[scac] at oracle.fabric.common.wsdl.SchemaManager.lookupSchema(SchemaMa
nager.java:201)
[scac] at oracle.fabric.common.wsdl.SchemaManager.lookupXSDElementDecla
ration(SchemaManager.java:379)
[scac] at oracle.soa.scac.WSDLValidator.validateMessageParts(WSDLValida
tor.java:112)
[scac] at oracle.soa.scac.WSDLValidator.validateMessages(WSDLValidator.
java:88)
[scac] at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:47)

[scac] at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:40)

[scac] at oracle.soa.scac.ValidateComposite.loadWSDLs(ValidateComposite
.java:918)
[scac] at oracle.soa.scac.ValidateComposite.doValidation(ValidateCompos
ite.java:534)
[scac] at oracle.soa.scac.ValidateComposite.main(ValidateComposite.java
:223)
[scac] Caused by: oracle.fabric.common.FabricException: Error in getting XM
L input stream: oramds:/soa/shared/rules/BpelProcess.xsd: oracle.mds.exception.M
DSException: MDS-00054: The file to be loaded oramds:/soa/shared/rules/BpelProce
ss.xsd does not exist.
[scac] at oracle.fabric.common.metadata.MetadataManagerImpl.getInputStr
eamFromAbsoluteURL(MetadataManagerImpl.java:273)
[scac] at oracle.integration.platform.common.MDSMetadataManagerImpl.get
InputStreamFromAbsoluteURL(MDSMetadataManagerImpl.java:538)
[scac] at oracle.fabric.common.metadata.MetadataManagerImpl.getDocument
AsInputStream(MetadataManagerImpl.java:152)
[scac] at oracle.integration.platform.common.MDSMetadataManagerImpl.get
DocumentAsInputStream(MDSMetadataManagerImpl.java:400)
[scac] at oracle.fabric.common.wsdl.SchemaBuilder.parseXMLSrc(SchemaBui
lder.java:959)
[scac] at oracle.fabric.common.wsdl.SchemaBuilder.parseXSDSrc(SchemaBui
lder.java:914)
[scac] at oracle.fabric.common.wsdl.SchemaBuilder.processSchemaImportsA
ndInclude(SchemaBuilder.java:769)
[scac] at oracle.fabric.common.wsdl.SchemaBuilder.processSchemaImportsA
ndInclude(SchemaBuilder.java:815)
[scac] at oracle.fabric.common.wsdl.SchemaBuilder.loadEmbeddedSchemas(S
chemaBuilder.java:492)
[scac] ... 13 more
[scac] Caused by: java.io.IOException: oracle.mds.exception.MDSException: M
DS-00054: The file to be loaded oramds:/soa/shared/rules/BpelProcess.xsd does no
t exist.
[scac] at oracle.mds.internal.net.AbstractOraMDSURLConnection.getPDocSt
ream(AbstractOraMDSURLConnection.java:388)
[scac] at oracle.mds.internal.net.AbstractOraMDSURLConnection.getInputS
tream(AbstractOraMDSURLConnection.java:176)
[scac] at oracle.mds.internal.net.OraMDSURLConnection.getInputStream(Or
aMDSURLConnection.java:67)
[scac] at java.net.URL.openStream(URL.java:1009)
[scac] at oracle.fabric.common.metadata.MetadataManagerImpl.getInputStr
eamFromAbsoluteURL(MetadataManagerImpl.java:269)
[scac] ... 21 more
[scac] Caused by: oracle.mds.exception.MDSException: MDS-00054: The file to
be loaded oramds:/soa/shared/rules/BpelProcess.xsd does not exist.
[scac] at oracle.mds.internal.net.AbstractOraMDSURLConnection.getPDocSt
ream(AbstractOraMDSURLConnection.java:339)
[scac] ... 25 more
[scac] FATAL_ERROR: location {/ns:composite/ns:import[@location='file:/home/jdeveloper/mywork/Application2/SubjectRules/MarkingFromCharge_DecisionService.wsdl']}: Load o
f wsdl "GetMarkingFromChargeRule.wsdl with Message part element undefined in wsd
l [file:/home/jdeveloper/mywork/Application2/SubjectRules/MarkingFromCharge_DecisionService.ws
dl] part name = payload type = {http://xmlns.oracle.com/SubjectRules/MarkingFrom
Charge_DecisionService}callFunctionStateful" failed
[scac] FATAL_ERROR: location {/ns:composite/ns:import[@location='file://home/jdeveloper/mywork/Application2/SubjectRules/GetMarkingFromChargeRule.wsdl']}: Load of wsdl "G
etMarkingFromChargeRule.wsdl with Message part element undefined in wsdl [file:/
/home/jdeveloper/mywork/Application2/SubjectRules/GetMarkingFromChargeRule.wsdl] part name = re
ply type = {http://copfs.gsi.gov.uk/Phoenix/Subject/1.0}MarkingFromChargeRul
eRs" failed

BUILD FAILED
$MW/jdeveloper/bin/ant-sca-compile.xml:264: Java returned: 1 Chec
k log file : Temp/out.err for errors





Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms