Wednesday, April 15, 2015

Implementing customizations in 12.2.4 or 12.2.X



1) Set classpath for customizations
"s_adovar_classpath" set /u01/oracle/OSRIP/fs1/EBSapps/appl/xxsr/12.0.0/java/classes: by adding xxsr java classes at the very beginning

2) Move or Copy the Custom class files to
/u01/oracle/OSRIP/fs1/EBSapps/appl/xxsr/12.0.0/java/classes

3) Edit the manifest file and change Entries as below
vi $FND_TOP/admin/template/ebsProductManifest_xml.tmp
Make sure customall.jar section is properly finshed by
      </libraries>
Add below part:
    <!-- ONSEMI customization for OAF - BEGIN -->
    <classpath>
      <absolute-path>%s_xxsrtop%/java/classes</absolute-path>
      <relative-path>../../../../../appl/xxsr/12.0.0/java/classes</relative-path>
      <windows-path>@BEA_HOME@/../EBSapps/appl/xxsr/12.0.0/java/classes</windows-path>
      <libraries>
        <library>customprod.jar</library>
      </libraries>
    </classpath>
    <!-- ONSEMI customization for OAF - END -->

NB:  Run autoconfig
$ adautocfg.sh
Enter the APPS user password:

4) Create custom classes jar file, cleanup is needed first

find /u01/oracle/OSRIP/fs1/EBSapps/appl/xxsr/12.0.0/java/classes -type f -not \( -name '*.xml' -o -name '*.class' \) -exec rm -f {} \;
find /u01/oracle/OSRIP/fs1/EBSapps/appl/xxsr/12.0.0/java/classes -type d -name 'common' -empty -exec rm -rf {} \;

5) cd $XXSR_TOP/java/classes
Delete temporary customprod.zip
zip -r customprod.zip *

6) Identify the existing keystore and key passwords by running the following SQL script connected as the APPS user:
SQL> set serveroutput on
declare
spass varchar2(30);
kpass varchar2(30);
begin
ad_jar.get_jripasswords(spass, kpass);
dbms_output.put_line(spass);
dbms_output.put_line(kpass);
end;
/

7) Sign custom jar file 
adjava oracle.apps.ad.jri.adjmx -areas customprod.zip -outputFile customprod.jar -jar $CONTEXT_NAME 1 CUST jarsigner -storePass changeit keyPass changeit

Or

Sign custom jar file using store pass and key pass from the above query
adjava oracle.apps.ad.jri.adjmx -areas $XXSR_TOP/java/classes/XXSRall.zip -outputFile $XXSR_TOP/java/classes/XXSRall.jar -jar $CONTEXT_NAME 1 CUST


OTHER Approach,
=============


=> Place a Custom directory Under JAVA_TOP
=> Create customall.jar file using "adcgnjar" utility.

Verification:
========

=> copy the customall.jar file to /tmp location.
=> Unzip the jar file using "unzip" utility and review all the intended directories taken
by the jar file.

=> Make sure JAVA_TOP path included in the CLASS PATH.
=>  Restart the oacore
admanagedsrvctl.sh stop oacore_server1
admanagedsrvctl.sh start oacore_server1








1 comment: