Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Enabling MDS in ADF 12c application

user8012501Jul 19 2017 — edited Jul 28 2017

Hi Experts,

I am using jdev 12.2.1.2

I am enabling MDS in my application and I followed Sameh Nassar: Apply MDS To Oracle ADF Application except custom UserCC class, i used default UserCC. When i deploy my application to integrated web logic server I can see Deploying configuration window and asking me to deploy my default repository everything looks good so far. But nothing is working with respect to user customizations.

Issues:

1. When i reorder my table columns, its not saving.

2. If i hide any column, its not hiding when i log in 2nd time.

3. The movement i saved my saved search, i am getting error like.

Below is my adf-config.xml

Caused by: oracle.mds.exception.ReadOnlyStoreException: MDS-01273: The operation on the resource /persdef/com/XXXXVO.xml failed because source metadata store mapped to the namespace / BASE DEFAULT is read only.

                at oracle.mds.core.MDSSession.checkAndSetWriteStoreInUse(MDSSession.java:4098)

                at oracle.mds.core.MDSSession.checkAndSetWriteStoreInUse(MDSSession.java:4147)

                at oracle.mds.core.MDSSession.createMetadataObject(MDSSession.java:660)

                at oracle.jbo.mom.xml.XMLOutputStream.setupDocument(XMLOutputStream.java:240)

                ... 77 more

<?xml version="1.0" encoding="windows-1252" ?>

<adf-config xmlns="http://xmlns.oracle.com/adf/config"

            xmlns:config="http://xmlns.oracle.com/bc4j/configuration"

            xmlns:adf="http://xmlns.oracle.com/adf/config/properties"

            xmlns:sec="http://xmlns.oracle.com/adf/security/config">

  <adf-adfm-config xmlns="http://xmlns.oracle.com/adfm/config">

    <defaults changeEventPolicy="ppr" useBindVarsForViewCriteriaLiterals="true"

              useBindValuesInFindByKey="true" mapNegativeScaleToIntegerTypes="true"

              executeEmptyOnException="true" iteratorRowValidationFlag="false"/>

    <startup>

      <amconfig-overrides>

        <config:Database jbo.locking.mode="optimistic"/>

      </amconfig-overrides>

    </startup>

  </adf-adfm-config>

  <adf:adf-properties-child xmlns="http://xmlns.oracle.com/adf/config/properties">

    <adf-property name="adfAppUID" value="JIRASys"/>

  </adf:adf-properties-child>

  <sec:adf-security-child xmlns="http://xmlns.oracle.com/adf/security/config">

    <CredentialStoreContext credentialStoreClass="oracle.adf.share.security.providers.jps.CSFCredentialStore"

                            credentialStoreLocation="../../src/META-INF/jps-config.xml"/>

   <sec:JaasSecurityContext initialContextFactoryClass="oracle.adf.share.security.JAASInitialContextFactory"

                             jaasProviderClass="oracle.adf.share.security.providers.jps.JpsSecurityContext"

                             authorizationEnforce="true" authenticationRequire="true"/>

  </sec:adf-security-child>

  <adf-faces-config xmlns="http://xmlns.oracle.com/adf/faces/config">

    <persistent-change-manager>

      <persistent-change-manager-class>oracle.adf.view.rich.change.MDSDocumentChangeManager</persistent-change-manager-class>

    </persistent-change-manager>

    <taglib-config>

      <taglib uri="http://xmlns.oracle.com/adf/faces/rich">

        <tag name="table">

          <attribute name="filterVisible">

            <persist-changes>true</persist-changes>

          </attribute>

        </tag>

        <tag name="panelBox">

          <attribute name="disclosed">

            <persist-changes>true</persist-changes>

          </attribute>

        </tag>

        <tag name="dialog">

          <attribute name="contentHeight">

            <persist-changes>true</persist-changes>

          </attribute>

          <attribute name="contentWidth">

            <persist-changes>true</persist-changes>

          </attribute>

        </tag>

        <tag name="calendar">

          <attribute name="activeDay">

            <persist-changes>true</persist-changes>

          </attribute>

          <attribute name="splitterCollapsed">

            <persist-changes>true</persist-changes>

          </attribute>

          <attribute name="splitterPosition">

            <persist-changes>true</persist-changes>

          </attribute>

          <attribute name="view">

            <persist-changes>true</persist-changes>

          </attribute>

        </tag>

        <tag name="link">

          <attribute name="windowHeight">

            <persist-changes>true</persist-changes>

          </attribute>

          <attribute name="windowWidth">

            <persist-changes>true</persist-changes>

          </attribute>

        </tag>

        <tag name="richTextEditor">

          <attribute name="editMode">

            <persist-changes>true</persist-changes>

          </attribute>

        </tag>

        <tag name="column">

          <attribute name="displayIndex">

            <persist-changes>true</persist-changes>

          </attribute>

          <attribute name="frozen">

            <persist-changes>true</persist-changes>

          </attribute>

          <attribute name="noWrap">

            <persist-changes>true</persist-changes>

          </attribute>

          <attribute name="selected">

            <persist-changes>true</persist-changes>

          </attribute>

          <attribute name="visible">

            <persist-changes>true</persist-changes>

          </attribute>

          <attribute name="width">

            <persist-changes>true</persist-changes>

          </attribute>

        </tag>

        <tag name="button">

          <attribute name="windowHeight">

            <persist-changes>true</persist-changes>

          </attribute>

          <attribute name="windowWidth">

            <persist-changes>true</persist-changes>

          </attribute>

        </tag>

      </taglib>

    </taglib-config>

  </adf-faces-config>

  <adf-mds-config xmlns="http://xmlns.oracle.com/adf/mds/config">

    <mds-config xmlns="http://xmlns.oracle.com/mds/config" version="11.1.1.000">

     <persistence-config>

       <metadata-namespaces>

          <namespace path="/oracle/adf/share/prefs" metadata-store-usage="MAR_TargetRepos"/>

       </metadata-namespaces>

       <metadata-store-usages>

          <metadata-store-usage id="MAR_TargetRepos" deploy-target="true" default-cust-store="true">

          </metadata-store-usage>

       </metadata-store-usages>

     </persistence-config>

      <cust-config>

        <match path="/">

          <customization-class name="oracle.adf.share.config.UserCC"/>

        </match>

      </cust-config>

    </mds-config>

  </adf-mds-config>

</adf-config>

Am i missing anything here? Is there any different set for 12c?

-Thanks,

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 25 2017
Added on Jul 19 2017
3 comments
966 views