Sunday, October 10, 2010

MDS-01333: missing element "mds-config"

While compiling a SOA Suite 11g composite you might get an issue like this

Error(12,61): Parse of component type files failed, check the adf-config.xml file : "oracle.fabric.common.FabricException: oracle.mds.config.MDSConfigurationException: MDS-01333: missing element "mds-config": MDS-01333: missing element "mds-config": oracle.mds.config.MDSConfigurationException: MDS-01333: missing element "mds-config": MDS-01333: missing element "mds-config""

don't know the exact reason how to reproduce this issue.

I just got one project from one of my colleague and while i was trying to compile this i got the above error.

This error is because of some misconfiguration or error in ADF-config.xml

I just checked the file and i found following entry

<?xml version="1.0" encoding="windows-1252" ?>
<adf-config xmlns="http://xmlns.oracle.com/adf/config"
xmlns:adf="http://xmlns.oracle.com/adf/config/properties">
<adf:adf-properties-child xmlns="http://xmlns.oracle.com/adf/config/properties">
<adf-property name="adfAppUID" value="Frustu-4655"/>
</adf:adf-properties-child>
</adf-config>

I compared it with the other adf-config.xml file that i have in my environment and find it was quite different.

Just did some research in net and got this forum link

Just copied the adf-config.xml file from there which is

<?xml version="1.0" encoding="windows-1252" ?>
<adf-config xmlns="http://xmlns.oracle.com/adf/config"
xmlns:adf="http://xmlns.oracle.com/adf/config/properties">
<adf:adf-properties-child xmlns="http://xmlns.oracle.com/adf/config/properties">
<adf-property name="adfAppUID" value="Tryout-4147"/>
</adf:adf-properties-child>
<adf-mds-config xmlns="http://xmlns.oracle.com/adf/mds/config">
<mds-config xmlns="http://xmlns.oracle.com/mds/config">
<persistence-config>
<metadata-namespaces>
<namespace metadata-store-usage="mstore-usage_1" path="/soa/shared"/>
</metadata-namespaces>
<metadata-store-usages>
<metadata-store-usage id="mstore-usage_1">
<metadata-store class-name="oracle.mds.persistence.stores.file.FileMetadataStore">
<property value="${oracle.home}/integration" name="metadata-path"/>
<property value="seed" name="partition-name"/>
</metadata-store>
</metadata-store-usage>
</metadata-store-usages>
</persistence-config>
</mds-config>
</adf-mds-config>
</adf-config>

and in stead of value Tryout-4147 i replaced it with my project name Frustu-4655 and to my surprise i was able to compile it successfully.

3 comments:

Algis said...

Hello,
Just FYI, be careful to change this one:
VacationRequestApp/.adf/META-INF/adf-config.xml

but not this one:
VacationRequest/SCA-INF/classes/META-INF/adf-config.xml

br,
Algis

Rafael Reuber said...

Hey, it worked for me too! Thank you!

yoyo joshi said...

For me one of the XSD was now correct. So it was giving this error. Resolved once I corrected XSD :)