The following known problem exists that affects Agent for Oracle Application Server 10g.
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.
Using a text editor of your choice, access the PolicyAgent-base/sampleapp/build.xml file.
Change line 69 as shown:
<pathelement location="${appserv.lib.dir}/ebj.jar"/>
<pathelement location="${appserv.lib.dir}/ejb.jar"/>
At line 95, add the following snippet:
<pathelement location="${appserv.lib.dir}/servlet.jar"/> <pathelement location="${appserv.lib.dir}/ejb.jar"/>
Save and close the build.xml file.
Using a text editor of your choice, access the META-INF/orion-application.xml file.
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:
<jazn provider="XML">
<jazn provider="XML" "location="./jazn-data.xml">
(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>
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