Compile Jsp’s in R12 & 11i
=====================
$cd $ADMIN_SCRIPTS_HOME
$adopmnctl.sh stopall — to shutdown opmn managed services
viz., opmn, forms, oacore & oc4j
$ cd
$COMMON_TOP/_pages
$ mv _pages _pages_old
$mkdir _pages
$ cd
$FND_TOP/patch/115/bin or export PATH=$FND_TOP/patch/115/bin:$PATH
Compile all jsps.
$perl ojspCompile.pl –compile –flush -p 2 (or)
ojspCompile.pl --compile --fast --quiet
(-p represents parallel threads, if you have enough horse
power on your server, you can increase it to 8 or 10)
$cd $ADMIN_SCRIPTS_HOME
Another Option
==============
STEP1.
Login as applmgr user and source the environment by running
the script:
/oracle/apps/apps_st/appl/APPS[SID]_[host].env
STEP2: Run the
commands
In Linux/Unix
cd $FND_TOP/patch/115/bin
perl ojspCompile.pl --compile --flush -p 2
In Windows
cd %FND_TOP%\patch\115\bin
perl -x ojspCompile.pl –compile –flush
STEP3:
Restart the Apache services or Middleware services.
How to compile individual JSP manually in R12:
STEP1:
cd $COMMON_TOP/_pages
STEP2:
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.
STEP3:
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.
$FND_TOP/patch/115/bin/ojspCompile.pl --compile -s
'abcdef_12.jsp' --flush
STEP4:
Restart the Apache services or Middle-ware services.
STEP5:
Check whether the respective class files have been created
under
cd $COMMON_TOP/_pages
To Compile JSP’s at runtime in Oracle Apps R12
===============================================
To compile the jsp as soon as you access jsp page :
1. Change s_jsp_main_mode in R12 context file (XML file)
<jsp_debug_parameters
oa_var=”s_jsp_main_mode”>justrun</jsp_debug_parameters>
change it to
<jsp_debug_parameters oa_var=”s_jsp_main_mode”>recompile</jsp_debug_parameters>
2.Run Autoconfig (adautocfg.sh)
Autoconfig will update file
$INST_TOP/ora/10.1.3/j2ee/oacore/application-deployments/oacore/html/orion-web.xml
<param-name>main_mode</param-name>
<param-value>justrun</param-value>
.
How to compile JSP manually
perl ojspCompile.pl –compile –flush (Unix)
or
perl ojspCompile.pl –compile –flush -p 2 (Unix where -p
means parallel execution)
perl -x ojspCompile.pl –compile –flush (Windows)
ojspCompile.pl is under $FND_TOP/patch/115/bin/
Note* JSP’s are compiled automatically after patching
(whenever patch updates one or more jsp it calls ojspCompile.pl to compile JSP)
.
JSP Compilation logs
In 11i, all jsp compilation errors are logged in
$IAS_ORACLE_HOME/ Apache/ Jserv/ logs/ mod_jserv.log
In R12, all jsp compilation errors are logged in $LOG_HOME/
ora/ 10.1.3/ j2ee/ oacore/ oacore_default_group_1/ application.log
458338.1 How to
Enable Automatic Compilation of JSP pages in R12 Environment
433386.1 JSP Pages
Hanging in R12 After Removing Cached Class Files in _pages
783094.1 Compile jsp
files at Application R12 at Windows
No comments :
Post a Comment