compile jsp in EBS R12

How to compile JSP in R12/11i?



How to compile JSP in R12


In Linux/Unix


Login as applmgr user and source the environment by running the script:

[applmgr@sujeet ~]$ cd /u02/sujeetapps/apps/apps_st/appl/

[applmgr@sujeet appl]$ . APPSCHTLPROD_sujeet.env

[applmgr@sujeet appl]$ cd $FND_TOP/patch/115/bin

[applmgr@sujeet bin]$ pwd

/u02/sujeetapps/apps/apps_st/appl/fnd/12.0.0/patch/115/bin

[applmgr@sujeet bin]$ perl ojspCompile.pl --compile --flush -p 2
( -p means parallel execution)

In Windows

cd %FND_TOP%\patch\115\bin
perl -x ojspCompile.pl –compile –flush


Restart the Apache services or Middle-ware services.


How to compile individual JSP in R12:


[applmgr@sujeet ~]$ cd $COMMON_TOP/_pages

[applmgr@sujeet  _pages]$ pwd

/u02/sujeetapps/apps/apps_st/comn/_pages

Delete the class files (abcdef.class) for the JSP that you want to compile manually.
Eg. JSP File abcdef_12.jsp 
Class File: abcdef_12.class ------------- Delete this file.

Navigate to the OA_HTML (Location for all the Jsp pages). if the JSP pages do not exist, copy the JSP to the location & run the below command.

[applmgr@sujeet ~]$ FND_TOP/patch/115/bin/ojspCompile.pl --compile -s 'abcdef_12.jsp' --flush

or

Compile a jsp page:
 [applmgr@sujeet ~]$ cd $OA_HTML
 [applmgr@sujeet ~]$ $FND_TOP/patch/115/bin/ojspCompile.pl --compile -s 'xxxx.jsp' -log err.log --flush

Compile all jsp pages:
 $FND_TOP/patch/115/bin/ojspCompile.pl --compile  --flush -p 4

Restart the Apache services or Middle-ware services. 
Check whether the respective class files have been created under 

cd $COMMON_TOP/_pagesCheers!

Enable Automatic Compilation of JSP pages in R12

edit the $CONTEXT_FILE
Change value for the entry s_jsp_main_mode from justrun to recompile

run AutoConfig, restart the web tier services.

***************************************************************************************************************************
For help use below cmd.
[applmgr@sujeet comn]$  $FND_TOP/patch/115/bin/ojspCompile.pl

syntax: /apps/vision/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/ojspCompile.pl COMMAND {ARGS}

COMMAND --compile               update dependency, compile delta
        --create                rebuild entire dependency file
        -delta.out <file>       update dependency, list delta to file
        -dep.out <xmlfile>      update dependency, output heirarchy to file

ARGS    -s <regex>      matching condition for JSPs filenames
        -p <procs>      number of parallel compilations
        -log <file>     to override logfile from ojspCompile.conf

You are recommended to set the log file location

 outside of any network file system shared (NFS) area/drive.
        -conf <file>    to override ojspCompile.conf
        --retry         retry previously failed compilation attempts
        --flush         forces recompilation of all parent JSPs
        --quiet         do not provide an actively running progress meter
        --fast          instantly fail jsps that are *possibly* invalid

No comments:

ORA-00059: Maximum Number Of DB_FILES Exceeded in 19C database

When I am adding datafile to my 19C database facing the below error. SQL> alter tablespace DATA  add datafile '/u01/data/data15.dbf...