Wednesday, May 23, 2012

MDS-00054 - ADF Config file

MDS-00054: If you are getting this mds exception then your ADF config file which is having the MDS connection details is not proper. So take a look at your adf-config.xml file.

There will be 2 copies of the files available, first at the root level (application) and another one at the project level.

Its idel to fix it at the application level, because for every compilation the project level file will be refreshed you may lose the changes that you apply on project level.

The main syntax that you need to keep in the adf-config.xml file is as follows.

mds-config xmlns="http://xmlns.oracle.com/mds/config"
      persistence-config
        metadata-namespaces
         namespace metadata-store-usage="mstore-usage_1" path="/apps"/
     namespace metadata-store-usage="mstore-usage_1" path="/deployed-composites"/
          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.db.DBMetadataStore"
              property value="DEV_MDS" name="jdbc-userid"/
              property value="welcome1" name="jdbc-password"/
              property value="jdbc:oracle:thin:@host:port:servicename"
                        name="jdbc-url"/
              property value="soa-infra" name="partition-name"/
            /metadata-store
          /metadata-store-usage
        /metadata-store-usages
      /persistence-config
   


Partition name should be soa-infra, prior to provide the connection information here you can try to connect with JDeveloper SOA-MDS connection to make sure you are able to connect to MDS.

No comments:

Post a Comment