Sun Java System Access Manager Policy Agent 2.2 Release Notes

Policy Agent 2.2 for Oracle Application Server 10g

The following known problem exists that affects Agent for Oracle Application Server 10g.

The sample application requires editing to work properly (6486895)

The sample application of Agent for Oracle Application Server 10g requires minor editing of XML files to work properly. The following task explains the editing required.

ProcedureTo Configure XML Files of the Sample Application

  1. Using a text editor of your choice, access the PolicyAgent-base/sampleapp/build.xml file.

  2. Change line 69 as shown:

    Change From

    <pathelement location="${appserv.lib.dir}/ebj.jar"/>

    Change To

    <pathelement location="${appserv.lib.dir}/ejb.jar"/>

  3. At line 95, add the following snippet:

    <pathelement location="${appserv.lib.dir}/servlet.jar"/>
    <pathelement location="${appserv.lib.dir}/ejb.jar"/>
  4. Save and close the build.xml file.

  5. Using a text editor of your choice, access the META-INF/orion-application.xml file.

  6. Add the following attribute as indicated:

    "location="./jazn-data.xml"

    The following shows how the element appears before and after you have added the required attribute:

    Change From

    <jazn provider="XML">

    Change To

    <jazn provider="XML" "location="./jazn-data.xml">

  7. (Conditional) If the jazn-data.xml file does not exist in the META-INF directory, create one as demonstrated in the following example:

    <?xml version="1.0" encoding="UTF-8" standalone='yes'?>
    <!DOCTYPE jazn-data PUBLIC "JAZN-XML Data" 
        "http://xmlns.oracle.com/ias/dtds/jazn-data.dtd">
    <jazn-data>
    <!-- JAZN Realm Data -->
    <jazn-realm>
    <realm>
    <name>jazn.com</name>
    <users>
    </users>
    <roles>
    </roles>
    </realm>
    </jazn-realm>
    
    <!-- JAZN Policy Data -->
    <jazn-policy>
    </jazn-policy>
    <!-- Permission Class Data -->
    <jazn-permission-classes>
    </jazn-permission-classes>
    <!-- Principal Class Data -->
    <jazn-principal-classes>
    </jazn-principal-classes>
    <!-- Login Module Data -->
    <jazn-loginconfig>
    </jazn-loginconfig>
    </jazn-data>
Next Steps

After you have performed the preceding steps, rebuild the sample application as described in the sample application readme.txt file, which is in the following location:

PolicyAgent-base/sampleapp/readme.txt